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

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.

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

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

Attributes

AttributeDescription
guidRequired. GUID of GUID/ID command identifier.
idRequired. ID of GUID/ID command identifier.

Child Elements

None

Parent Elements

ElementDescription
CommandTable ElementDefines 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 ElementGroups Button Element elements.
Menus ElementDefines all the menus that a VSPackage implements.
Groups ElementContains entries that define the command groups of a VSPackage.

Visual Studio Command Table (.Vsct) Files

Show: