Compartir a través de


_CommandBars.AddEx Method

Adds a command bar, including its protection level.

Namespace:  Microsoft.VisualStudio.CommandBars
Assembly:  Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)

Syntax

'Declaración
Function AddEx ( _
    TbidOrName As Object, _
    Position As Object, _
    MenuBar As Object, _
    Temporary As Object, _
    TbtrProtection As Object _
) As CommandBar
'Uso
Dim instance As _CommandBars
Dim TbidOrName As Object
Dim Position As Object
Dim MenuBar As Object
Dim Temporary As Object
Dim TbtrProtection As Object
Dim returnValue As CommandBar

returnValue = instance.AddEx(TbidOrName, _
    Position, MenuBar, Temporary, TbtrProtection)
CommandBar AddEx(
    Object TbidOrName,
    Object Position,
    Object MenuBar,
    Object Temporary,
    Object TbtrProtection
)
CommandBar^ AddEx(
    [InAttribute] Object^ TbidOrName, 
    [InAttribute] Object^ Position, 
    [InAttribute] Object^ MenuBar, 
    [InAttribute] Object^ Temporary, 
    [InAttribute] Object^ TbtrProtection
)
abstract AddEx : 
        TbidOrName:Object * 
        Position:Object * 
        MenuBar:Object * 
        Temporary:Object * 
        TbtrProtection:Object -> CommandBar 
function AddEx(
    TbidOrName : Object, 
    Position : Object, 
    MenuBar : Object, 
    Temporary : Object, 
    TbtrProtection : Object
) : CommandBar

Parameters

  • Position
    Type: System.Object
    [in, optional] The name of the command bar. If this parameter is not specified, a unique name is generated.
  • MenuBar
    Type: System.Object
    [in, optional] The MsoBarPosition of the new command bar. If this parameter is not specified the default value is msoBarFloating.
  • Temporary
    Type: System.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.

Return Value

Type: Microsoft.VisualStudio.CommandBars.CommandBar
The newly-added CommandBar.

.NET Framework Security

See Also

Reference

_CommandBars Interface

_CommandBars Members

Microsoft.VisualStudio.CommandBars Namespace