共用方式為


Buttons 元素

將 Button 元素分組,代表個別命令。

語法

<Buttons>
  <Button>... </Button>
  <Button>... </Button>
</Buttons>

屬性和元素

下列章節說明屬性、子元素和父元素。

屬性

屬性 描述
條件 選擇性。 請參閱 條件屬性

子元素

元素 描述
Buttons 元素 將 Button 元素分組。
Button 元素 定義使用者可以與之互動的命令。

父元素

元素 描述
Commands 元素 表示 VSPackage 工具列上的命令集合。

範例

<Buttons>
  <Button guid="guidMenuAndCommandsCmdSet" id="cmdidMyCommand"     priority="0x100" type="Button">
    <Parent guid="guidMenuAndCommandsCmdSet" id="MyMenuGroup"/>
    <Icon guid="guidGenericCmdBmp" id="bmpArrow"/>
    <Strings>
      <ButtonText>C# Command Sample</ButtonText>
    </Strings>
  </Button>
</Buttons>

另請參閱