CommandPlacements Element
The CommandPlacements element groups CommandPlacement elements and other CommandPlacements groupings.
The CommandPlacements element is optional. If no commands, groups, or menus must be included in a secondary location, you do not have to include this section in your .vsct file.
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 |
---|---|
CommandPlacements |
Groups CommandPlacement elements and other CommandPlacements groupings. |
Enables buttons, groups, and menus to be included in more than one group or menu. |
Parent Elements
Element |
Description |
---|---|
Defines all the elements that represent commands. |
Example
<CommandPlacements>
<CommandPlacement guid="guidWidgetPackage" id="cmdidInsertOptions"
priority="0x0300">
<Parent guid="cmdGuidWidgetCommands" id="menuIDEditWidget"/>
</CommandPlacement>
</CommandPlacements>