Compartilhar via


_CommandBars.AddEx(Object, Object, Object, Object, Object) Method

Definition

Adds a command bar, including its protection level.

Microsoft::VisualStudio::CommandBars::CommandBar AddEx(winrt::Windows::Foundation::IInspectable const & TbidOrName, winrt::Windows::Foundation::IInspectable const & Position, winrt::Windows::Foundation::IInspectable const & MenuBar, winrt::Windows::Foundation::IInspectable const & Temporary, winrt::Windows::Foundation::IInspectable const & TbtrProtection);
[System.Runtime.InteropServices.DispId(1610809366)]
[System.Runtime.InteropServices.TypeLibFunc(64)]
public Microsoft.VisualStudio.CommandBars.CommandBar AddEx (object TbidOrName, object Position, object MenuBar, object Temporary, object TbtrProtection);
public Microsoft.VisualStudio.CommandBars.CommandBar AddEx (object TbidOrName, object Position, object MenuBar, object Temporary, object TbtrProtection);
[<System.Runtime.InteropServices.DispId(1610809366)>]
[<System.Runtime.InteropServices.TypeLibFunc(64)>]
abstract member AddEx : obj * obj * obj * obj * obj -> Microsoft.VisualStudio.CommandBars.CommandBar
abstract member AddEx : obj * obj * obj * obj * obj -> Microsoft.VisualStudio.CommandBars.CommandBar
Public Function AddEx (Optional TbidOrName As Object, Optional Position As Object, Optional MenuBar As Object, Optional Temporary As Object, Optional TbtrProtection As Object) As CommandBar

Parameters

TbidOrName
Object

Description

Position
Object

[in, optional] The name of the command bar. If this parameter is not specified, a unique name is generated.

MenuBar
Object

[in, optional] The MsoBarPosition of the new command bar. If this parameter is not specified the default value is msoBarFloating.

Temporary
Object

[in, optional] Whether the new bar is a menu or not. Visual Studio does not support adding menus with this method; the value must be false.

TbtrProtection
Object

[in, optional] The MsoBarProtection of the new command bar. Must be msoBarNoProtection.

Returns

The newly-added CommandBar.

Attributes

Applies to