对按钮元素进行分组,这些元素表示单个命令。
语法
<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>