Commands.RemoveCommandBar(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.