Partilhar via


Groups Element

Contains entries that define the command groups of a VSPackage.

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

Attributes and Elements

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

Attributes

Attribute

Description

Condition

Optional. See VSCT XML Schema Conditional Attributes.

Child Elements

Element

Description

Group Element

Represents a single command group.

Groups Element

Contains entries that define the command groups of a VSPackage.

Parent Elements

Element

Description

Commands Element

Represents the collection of commands on the VSPackage toolbar.

Example

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

See Also

Concepts

How VSPackages Add User Interface Elements to the IDE

Other Resources

Commands, Menus, and Toolbars