The CommandPlacement element enables buttons, groups, and menus to be included in more than one group or menu. By using the CommandPlacement element, you do not have to completely redefine these items in order to modify the look of a user interface.
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute |
Description |
|---|---|
guid |
Required. |
id |
Required. |
priority |
Required |
Condition |
Optional. See VSCT XML Schema Conditional Attributes. |
Child Elements
Element |
Description |
|---|---|
Parent |
Required |
Annotation |
Optional. |
Parent Elements
Element |
Description |
|---|---|
Specifies groups of CommandPlacements and CommandPlacement elements. |
Example
<CommandPlacements>
<CommandPlacement guid="guidWidgetPackage" id="cmdidInsertOptions"
priority="0x0300">
<Parent guid="cmdGuidWidgetCommands" id="menuIDEditWidget"/>
</CommandPlacement>
</CommandPlacements>