Group 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 Group Element.

Defines a VSPackage command group.

<Group guid="guidMyCommandSet" id="MyGroup" priority="0x101">  
  <Parent>... </Parent>  
</Group>  

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

Attributes

AttributeDescription
guidRequired. GUID of the GUID/ID command identifier.
idRequired. ID of the GUID/ID command identifier.
priorityOptional. A numeric value that specifies the priority.
ConditionOptional. See Conditional Attributes.

Child Elements

ElementDescription
ParentOptional. The parent element of the button.
AnnotationOptional comment.

Parent Elements

ElementDescription
Groups ElementContains entries that define the command groups of a VSPackage.
<Group guid="cmdSetGuidWidgetCommands" id="groupIDFileEdit">  
  <Parent guid="guidSHLMainMenu" id="IDM_VS_TOOL_MAINMENU"/>  
</Group>  

Visual Studio Command Table (.Vsct) Files

Show: