Commands.RemoveCommandBar(Object) 方法

定义

删除使用方法创建的命令栏 AddCommandBar(String, vsCommandBarType, Object, Int32)

public:
 void RemoveCommandBar(System::Object ^ CommandBar);
public:
 void RemoveCommandBar(Platform::Object ^ CommandBar);
void RemoveCommandBar(winrt::Windows::Foundation::IInspectable const & CommandBar);
[System.Runtime.InteropServices.DispId(13)]
public void RemoveCommandBar (object CommandBar);
[<System.Runtime.InteropServices.DispId(13)>]
abstract member RemoveCommandBar : obj -> unit
Public Sub RemoveCommandBar (CommandBar As Object)

参数

CommandBar
Object

必需。 要移除的 CommandBar 对象。

属性

注解

如果命令栏 (内置) 到环境中,则此方法将失败。

CommandBar对象是 Microsoft Office 对象模型的成员。

适用于