Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Groups Button elements, which represent individual commands.
<Buttons>
<Button>... </Button>
<Button>... </Button>
</Buttons>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute |
Description |
|---|---|
Condition |
Optional. See VSCT XML Schema Conditional Attributes. |
Child Elements
Element |
Description |
|---|---|
Groups Button elements. |
|
Defines a command that the user can interact with. |
Parent Elements
Element |
Description |
|---|---|
Represents the collection of commands on the VSPackage toolbar. |
Example
<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>
See Also
Concepts
How VSPackages Add User Interface Elements to the IDE