Compartir a través de


_CommandBarComboBox.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)

Syntax

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

returnValue = instance.Copy(Bar, Before)
CommandBarControl Copy(
    Object Bar,
    Object Before
)
CommandBarControl^ Copy(
    [InAttribute] Object^ Bar, 
    [InAttribute] Object^ Before
)
abstract Copy : 
        Bar:Object * 
        Before:Object -> CommandBarControl 
function Copy(
    Bar : Object, 
    Before : Object
) : CommandBarControl

Parameters

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

Implements

CommandBarControl.Copy(Object, Object)

Remarks

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

.NET Framework Security

See Also

Reference

_CommandBarComboBox Interface

_CommandBarComboBox Members

Copy Overload

Microsoft.VisualStudio.CommandBars Namespace