Groups Element

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Groups Element.

Contains entries that define the command groups of a VSPackage.

<Groups>  
  <Group>... </Group>  
  <Group>... </Group>  
</Groups>  

The following sections describe attributes, child elements, and parent elements.

Attributes

AttributeDescription
ConditionOptional. See Conditional Attributes.

Child Elements

ElementDescription
Group ElementRepresents a single command group.
Groups ElementContains entries that define the command groups of a VSPackage.

Parent Elements

ElementDescription
Commands ElementRepresents the collection of commands on the VSPackage toolbar.
<Groups>  
  <Group guid="cmdSetGuidWidgetCommands" id="groupIDFileEdit">  
    <Parent guid="guidSHLMainMenu" id="IDM_VS_TOOL_MAINMENU"/>  
  </Group>  
</Groups>  

How VSPackages Add User Interface Elements
Commands, Menus, and Toolbars

Show: