Skip to main content
A newer version of this page is available. .
Tab

TreeViewNodeCollection.FindByName(String) Method

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

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.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