TreeNode.Text Property
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)
Property Value
The text displayed for the node in the TreeView control. The default is an empty string ("").Use the Text property to specify or determine the text that is displayed for the node in the TreeView 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 is stored in view state.
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.
| Topic | Location |
|---|---|
| How to: Add or Delete TreeView Node Elements (Visual Studio) | Building ASP .NET Web Applications in Visual Studio |
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Note