CommandBarsClass.Add(Object, Object, Object, Object) 方法

定义

添加命令栏。

 virtual Microsoft::VisualStudio::CommandBars::CommandBar Add(winrt::Windows::Foundation::IInspectable const & Name, winrt::Windows::Foundation::IInspectable const & Position, winrt::Windows::Foundation::IInspectable const & MenuBar, winrt::Windows::Foundation::IInspectable const & Temporary);
[System.Runtime.InteropServices.DispId(1610809346)]
public virtual Microsoft.VisualStudio.CommandBars.CommandBar Add (object Name, object Position, object MenuBar, object Temporary);
[<System.Runtime.InteropServices.DispId(1610809346)>]
abstract member Add : obj * obj * obj * obj -> Microsoft.VisualStudio.CommandBars.CommandBar
override this.Add : obj * obj * obj * obj -> Microsoft.VisualStudio.CommandBars.CommandBar
Public Overridable Function Add (Optional Name As Object, Optional Position As Object, Optional MenuBar As Object, Optional Temporary As Object) As CommandBar

参数

Name
Object

命令栏的名称。

MenuBar
Object

true 如果命令栏是菜单栏,则为; 否则为 false

Temporary
Object

true 如果栏是临时的,则为; 否则为 false

返回

CommandBar

新添加的 CommandBar

实现

属性

适用于