Commands.RemoveCommandBar(Object) Commands.RemoveCommandBar(Object) Commands.RemoveCommandBar(Object) Commands.RemoveCommandBar(Object) Commands.RemoveCommandBar(Object) 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);
abstract member RemoveCommandBar : obj -> unit
Public Sub RemoveCommandBar (CommandBar As Object)
Parameters
CommandBar
Object Object Object Object Object Object

Required. The CommandBar object to remove.

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