Back to Devexpress

TreeViewNode.Text Property

aspnet-devexpress-dot-web-dot-treeviewnode-58cee9a8.md

latest1.7 KB
Original Source

TreeViewNode.Text Property

Gets or sets the text displayed within the node content.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("Node")]
public string Text { get; set; }
vb
<DefaultValue("Node")>
Public Property Text As String

Property Value

TypeDefaultDescription
String"Node"

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

|

Remarks

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.

Example

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

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

See Also

Tree View

TreeViewNode Class

TreeViewNode Members

DevExpress.Web Namespace