Compartir a través de


CommandBarControl.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

'Declaración
Function Move ( _
    Bar As Object, _
    Before As Object _
) As CommandBarControl
'Uso
Dim instance As CommandBarControl
Dim Bar As Object
Dim Before As Object
Dim returnValue As CommandBarControl

returnValue = instance.Move(Bar, Before)
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: System.Object
    [in, optional] The MsoControlType of the moved control. If this parameter is not specified, the default value is msoControlButton.
  • Before
    Type: System.Object
    [in, optional] An integer representing the index of the moved control. If this parameter is not specified, the new control is added at the end of the target command bar.

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

See Also

Reference

CommandBarControl Interface

CommandBarControl Members

Microsoft.VisualStudio.CommandBars Namespace