CommandPlacements 元素

CommandPlacements 元素组 CommandPlacement 元素和其他 CommandPlacements 分组。

CommandPlacements 元素是可选的。 如果在辅助位置不必包括命令、组或菜单,则在 .vsct 文件不必包含本节。

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

特性和元素

以下几节描述了特性、子元素和父元素。

特性

特性

说明

Condition

可选。 请参见 VSCT XML 架构条件特性

子元素

元素

说明

CommandPlacements

组 CommandPlacement 元素和其他 CommandPlacements 分组。

CommandPlacement 元素

启用按钮、在多个组或菜单要包括的组和菜单。

父元素

元素

说明

CommandTable 元素

定义表示命令的所有元素。

示例

<CommandPlacements>
  <CommandPlacement guid="guidWidgetPackage" id="cmdidInsertOptions"
    priority="0x0300">
    <Parent guid="cmdGuidWidgetCommands" id="menuIDEditWidget"/>
  </CommandPlacement>
</CommandPlacements>

请参见

参考

CommandPlacement 元素

其他资源

Visual Studio 命令 (表。Vsct) 文件