System.Web.UI.WebControls.MenuItem.Text Property

Gets or sets the text displayed for the menu item in a System.Web.UI.WebControls.Menu control.

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

Use the MenuItem.Text property to specify or determine the text that is displayed for the menu item in the System.Web.UI.WebControls.Menu control.

Note:

If the MenuItem.Text property contains null, the get accessor returns the value of the MenuItem.Value property. If the MenuItem.Value property, in turn, contains null, string.Empty is returned.

The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see System.ComponentModel.LocalizableAttribute and ASP.NET Globalization and Localization.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0