다음을 통해 공유


Group Element

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Defines a VSPackage command group.

Syntax

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

Attributes and Elements

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

Attributes

Attribute Description
guid Required. GUID of the GUID/ID command identifier.
id Required. ID of the GUID/ID command identifier.
priority Optional. A numeric value that specifies the priority.
Condition Optional. See Conditional Attributes.

Child Elements

Element Description
Parent Optional. The parent element of the button.
Annotation Optional comment.

Parent Elements

Element Description
Groups Element Contains entries that define the command groups of a VSPackage.

Example

<Group guid="cmdSetGuidWidgetCommands" id="groupIDFileEdit">  
  <Parent guid="guidSHLMainMenu" id="IDM_VS_TOOL_MAINMENU"/>  
</Group>  

See Also

Visual Studio Command Table (.Vsct) Files