CommandPlacements 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 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.

<CommandPlacements>  
  <CommandPlacement>... </CommandPlacement>  
  <CommandPlacement>... </CommandPlacement>  
</CommandPlacements>  

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

Attributes

AttributeDescription
ConditionOptional. See Conditional Attributes.

Child Elements

ElementDescription
CommandPlacementsGroups CommandPlacement elements and other CommandPlacements groupings.
CommandPlacement ElementEnables buttons, groups, and menus to be included in more than one group or menu.

Parent Elements

ElementDescription
CommandTable ElementDefines all the elements that represent commands.
<CommandPlacements>  
  <CommandPlacement guid="guidWidgetPackage" id="cmdidInsertOptions"  
    priority="0x0300">  
    <Parent guid="cmdGuidWidgetCommands" id="menuIDEditWidget"/>  
  </CommandPlacement>  
</CommandPlacements>  

CommandPlacement Element
Visual Studio Command Table (.Vsct) Files

Show: