System.Windows.Forms.ToolStripItem.Text Property

Gets or sets the text that is to be displayed on the item.

Syntax

[System.ComponentModel.DefaultValue("")]
[System.ComponentModel.Localizable(true)]
public virtual string Text { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

You can create an access key to the item by adding an ampersand ("&") before a letter in the text value. For more information, see How to: Create Access Keys for Windows Forms Controls.

System.Windows.Forms.ToolStripItem uses the ToolStripItem.Text property as the default source for the System.Windows.Forms.ToolTip content. Set ToolStripItem.AutoToolTip to false to use ToolStripItem.ToolTipText as the source for System.Windows.Forms.ToolTip content.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0