_CommandBarButton.Copy(Object, Object) 方法

定义

将此控件复制到指定命令栏上的指定位置。

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

参数

Bar
Object

CommandBar 向其复制控件的。

Before
Object

命令栏上将其复制到的位置。

返回

CommandBarControl

控件的副本。

实现

属性

注解

命令栏上的控件集合是从1开始的。

适用于