Commands2::AddCommandBar Method (String^, vsCommandBarType, Object^, Int32)
Visual Studio 2015
Creates a command bar that is saved and available the next time the environment is started.
Assembly: EnvDTE80 (in EnvDTE80.dll)
Object^ AddCommandBar(
String^ Name,
vsCommandBarType Type,
Object^ CommandBarParent,
int Position = 1
)
Parameters
- Name
-
Type:
System::String^
Required. A name for the new command bar.
- Type
-
Type:
EnvDTE::vsCommandBarType
Required. A vsCommandBarType constant that determines the type of command bar:
- CommandBarParent
-
Type:
System::Object^
Optional. A CommandBar object to which the new command bar is to be added. (This is required, however, if Type is vsCommandBarTypeMenu.)
- Position
-
Type:
System::Int32
Optional. The index position, starting at one, in the command bar to place the new command bar.
The new command bar is available during each new session of the environment.
Show: