共用方式為


ButtonText Element

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

This field lets you specify the text that appears in various menus. By default, the ButtonText element appears in menu controllers. The ButtonText element also becomes the default if the other text fields are blank. The ButtonText element cannot be blank even if the other text fields are specified.

Syntax

<ButtonText>My Command</ButtonText>  

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

None.

Parent Elements

Element Description
Strings Element Groups text elements, such as ButtonText and CommandName.

Text Value

The text value of the ButtonText element provides the text that is displayed for menu items, combos, and other user interface (UI) elements that have visible text.

See Also

Visual Studio Command Table (.Vsct) Files