Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
Function Copy ( _
Bar As Object, _
Before As Object _
) As CommandBarControl
'Usage
Dim instance As CommandBarControl
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
- Bar
Type: System.Object
[in, optional] The MsoControlType of the new 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 copied 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 copy of the control.
Remarks
The collection of controls on the command bar is 1-based.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.