MenuItem.Text Property
.NET Framework 3.0
Gets or sets the text displayed for the menu item in a Menu control.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
[LocalizableAttribute(true)] public: property String^ Text { String^ get (); void set (String^ value); }
/** @property */ public String get_Text () /** @property */ public void set_Text (String value)
public function get Text () : String public function set Text (value : String)
Not applicable.
Property Value
The text displayed for the menu item in the Menu control. The default is an empty string ("").Use the Text property to specify or determine the text that is displayed for the menu item in the Menu control.
Note: |
|---|
| If the Text property contains a null reference (Nothing in Visual Basic), the get accessor returns the value of the Value property. If the Value property, in turn, contains a null reference (Nothing in Visual Basic), 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 LocalizableAttribute and ASP.NET Globalization and Localization.
Community Additions
ADD
Show:
Note: