Share via


CommandBarComboBoxClass.Copy Method

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)

Syntax

'Declaration
Public Overridable Function Copy ( _
    Bar As Object, _
    Before As Object _
) As CommandBarControl
public virtual CommandBarControl Copy(
    Object Bar,
    Object Before
)
public:
virtual CommandBarControl^ Copy(
    [InAttribute] Object^ Bar, 
    [InAttribute] Object^ Before
)
abstract Copy : 
        Bar:Object * 
        Before:Object -> CommandBarControl  
override Copy : 
        Bar:Object * 
        Before:Object -> CommandBarControl
public function Copy(
    Bar : Object, 
    Before : Object
) : CommandBarControl

Parameters

  • Bar
    Type: Object

    The CommandBar to which to copy the control.

  • Before
    Type: Object

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

Return Value

Type: Microsoft.VisualStudio.CommandBars.CommandBarControl
The copy of the control.

Implements

_CommandBarComboBox.Copy(Object, Object)

Remarks

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

.NET Framework Security

See Also

Reference

CommandBarComboBoxClass Class

Microsoft.VisualStudio.CommandBars Namespace