Parent 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

The parent of a button or combo box may only be a group. The parent of a menu or group may be any other menu or group. In a CommandPlacement Element, this element is required; in all other instances it is optional. If this element is omitted, the parent of Group_Undefined:0 will be implied.

Syntax

<Parent guid="guidMyCommandSet" id="MyParentGroupOrMenu" />  

Attributes and Elements

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

Attributes

Attribute Description
guid Required. GUID of GUID/ID command identifier.
id Required. ID of GUID/ID command identifier.

Child Elements

None

Parent Elements

Element Description
CommandTable Element Defines all the elements that represent commands that a VSPackage provides to the integrated development environment (IDE). For example, menu items, menus, toolbars, and combo boxes.
Buttons Element Groups Button Element elements.
Menus Element Defines all the menus that a VSPackage implements.
Groups Element Contains entries that define the command groups of a VSPackage.

See Also

Visual Studio Command Table (.Vsct) Files