Skip to main content

TreeViewNode.Text Property

Gets or sets the text displayed within the node content.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.1.dll

NuGet Package: DevExpress.Web


public string Text { get; set; }

Property Value

Type Default Description
String "Node"

A string value that specifies the node’s text content.


The Text property specifies the node’s text content. A node can be obtained by its Text property via the TreeViewNodeCollection.FindByText method or ASPxClientTreeView.GetNodeByText and ASPxClientTreeViewNode.GetNodeByText methods on the client side.


The code below demonstrates how you can get a node’s text by its Name property value.

string NodeText = ASPxTreeView1.Nodes.FindByName("NodeName").Text;
See Also