Skip to main content
Tab

TreeViewNodeCollection.FindByName(String) Method

Returns a node with the specified TreeViewNode.Name property value.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public TreeViewNode FindByName(
    string name
)

Parameters

Name Type Description
name String

A String value, representing the TreeViewNode.Name property value of the required node.

Returns

Type Description
TreeViewNode

A TreeViewNode object with a specific value of the TreeViewNode.Name property.

Remarks

Use this method to obtain a node, specified by a unique name, assigned to its TreeViewNode.Name property.

Example

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