個々のコマンドを表す 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>