TreeViewNodeCollection.FindByName(String) Method
In This Article
Returns a node with the specified TreeViewNode.Name property value.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public TreeViewNode FindByName(
string name
)
#Parameters
Name | Type | Description |
---|---|---|
name | String | A String value, representing the Tree |
#Returns
Type | Description |
---|---|
Tree |
A Tree |
#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