_CommandBars::AddEx Method (Object^, Object^, Object^, Object^, Object^)
Visual Studio 2015
Adds a command bar, including its protection level.
Assembly: Microsoft.VisualStudio.CommandBars (in Microsoft.VisualStudio.CommandBars.dll)
[DispIdAttribute(1610809366)] [TypeLibFuncAttribute(64)] CommandBar^ AddEx( Object^ TbidOrName, Object^ Position, Object^ MenuBar, Object^ Temporary, Object^ TbtrProtection )
Parameters
- TbidOrName
-
Type:
System::Object^
Description
- 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.
- TbtrProtection
-
Type:
System::Object^
[in, optional] The MsoBarProtection of the new command bar. Must be msoBarNoProtection.
Show: