Udostępnij za pośrednictwem


CommandBarButtonClass.Copy(Object, Object) Method

Definition

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

 virtual Microsoft::VisualStudio::CommandBars::CommandBarControl Copy(winrt::Windows::Foundation::IInspectable const & Bar, winrt::Windows::Foundation::IInspectable const & Before);
[System.Runtime.InteropServices.DispId(1610874886)]
public virtual Microsoft.VisualStudio.CommandBars.CommandBarControl Copy (object Bar, object Before);
[<System.Runtime.InteropServices.DispId(1610874886)>]
abstract member Copy : obj * obj -> Microsoft.VisualStudio.CommandBars.CommandBarControl
override this.Copy : obj * obj -> Microsoft.VisualStudio.CommandBars.CommandBarControl
Public Overridable Function Copy (Optional Bar As Object, Optional Before As Object) As CommandBarControl

Parameters

Bar
Object

The CommandBar to which to copy the control.

Before
Object

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

Returns

The copy of the control.

Implements

Attributes

Remarks

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

Applies to