| title |
Menus Element |
| description |
The Menus element defines all the menus and toolbars that a VSPackage implements. This article contains an example. |
| ms.date |
11/04/2016 |
| ms.topic |
reference |
| helpviewer_keywords |
VSCT XML schema elements, Menus |
Menus element (VSCT XML schema) |
|
| author |
tinaschrepfer |
| ms.author |
tinali |
| ms.subservice |
extensibility-integration |
Menus element
Defines all the menus and toolbars that a VSPackage implements.
<Menus>
<Menu>... </Menu>
<Menu>... </Menu>
</Menus>
The following sections describe attributes, child elements, and parent elements.
| Element |
Description |
| Menus element |
Defines all the menus and toolbars that a VSPackage implements. |
| Menu element |
Represents a single menu or toolbar. |
| Element |
Description |
| Commands element |
Represents the collection of commands in the VSPackage. |
<Commands package="guidMyPackage">
<Menus>
<Menu Condition="'%(DEBUG)' != 'true'"
guid="cmdSetGuidMyProductCommands" id="menuIDMainMenu"
priority="0x0000" type="Menu">
<Annotation>
<Documentation>this is an annotation</Documentation>
<AppInfo>
<CustomData>
<CustomSubElement>Some data</CustomSubElement>
</CustomData>
</AppInfo>
</Annotation>
<CommandFlag>AlwaysCreate</CommandFlag>
<Strings>
<ButtonText>MainMenu</ButtonText>
</Strings>
</Menu>
</Menus>
<Commands>