System.Web.UI.WebControls.TreeNode.Text Property

Gets or sets the text displayed for the node in the System.Web.UI.WebControls.TreeView 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 TreeNode.Text property to specify or determine the text that is displayed for the node in the System.Web.UI.WebControls.TreeView control.

Note:

If the TreeNode.Text property contains null, the get accessor returns the value of the TreeNode.Value property. If the TreeNode.Value property, in turn, contains null, string.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 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