CommandBarControl::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)

[DispIdAttribute(1610874902)]
CommandBarControl^ Move(
	Object^ Bar,
	Object^ Before
)

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.

The collection of controls on the command bar is 1-based.

Return to top
Show: