Compartilhar via


CommandBarsClass.Add(Object, Object, Object, Object) Method

Definition

Adds a command bar.

 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

Parameters

Name
Object

The name of the command bar.

Position
Object

The MsoBarPosition.

MenuBar
Object

true if the command bar is a menu bar, otherwise false.

Temporary
Object

true if the bar is temporary, otherwise false.

Returns

The newly-added CommandBar.

Implements

Attributes

Applies to