CommandBarButtonClass.Copy Method (Object, Object)

 

Copies this control to the specified position on the specified command bar.

Namespace:   Microsoft.VisualStudio.CommandBars
Assembly:  Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)

[DispIdAttribute(1610874886)]
public virtual CommandBarControl Copy(
	object Bar,
	object Before
)

Parameters

Bar
Type: System.Object

The CommandBar to which to copy the control.

Before
Type: System.Object

The position on the command bar to which to copy it.

Return Value

Type: Microsoft.VisualStudio.CommandBars.CommandBarControl

The copy of the control.

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

Return to top
Show: