Condividi tramite


Commands.RemoveCommandBar(Object) Method

Definition

Removes a command bar that was created with the AddCommandBar(String, vsCommandBarType, Object, Int32) method.

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)

Parameters

CommandBar
Object

Required. The CommandBar object to remove.

Attributes

Remarks

This method fails if the command bar is intrinsic (built-in) to the environment.

The CommandBar object is a member of the Microsoft Office object model.

Applies to