CommandBarsClass.Add(Object, Object, Object, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
添加命令栏。
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
命令栏的名称。
- Position
- Object
- MenuBar
- Object
true 如果命令栏是菜单栏,则为; 否则为 false 。
- Temporary
- Object
true 如果栏是临时的,则为; 否则为 false 。
返回
新添加的 CommandBar 。
实现
- 属性