_CommandBarComboBox.Move Method
Moves this control to the specified command bar at the specified position.
Namespace: Microsoft.VisualStudio.CommandBars
Assembly: Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)
Syntax
'Declaration
Function Move ( _
Bar As Object, _
Before As Object _
) As CommandBarControl
CommandBarControl Move(
Object Bar,
Object Before
)
CommandBarControl^ Move(
[InAttribute] Object^ Bar,
[InAttribute] Object^ Before
)
abstract Move :
Bar:Object *
Before:Object -> CommandBarControl
function Move(
Bar : Object,
Before : Object
) : CommandBarControl
Parameters
Bar
Type: ObjectThe CommandBar to which to copy the control.
Before
Type: ObjectThe position on the command bar to which to copy it.
Return Value
Type: Microsoft.VisualStudio.CommandBars.CommandBarControl
The moved control.
Remarks
The collection of controls on the command bar is 1-based.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.