次の方法で共有


_CommandBarButton.Move Method (Object, Object)

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

'宣言
Function Move ( _
    Bar As Object, _
    Before As Object _
) As CommandBarControl
CommandBarControl Move(
    Object Bar,
    Object Before
)

Parameters

  • Before
    Type: System.Object
    The 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

See Also

Reference

_CommandBarButton Interface

Move Overload

Microsoft.VisualStudio.CommandBars Namespace