Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeList.FindNodes(Predicate<TreeListNode>) Method

Returns all nodes that match the specific criteria.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

#Declaration

public TreeListNode[] FindNodes(
    Predicate<TreeListNode> match
)

#Parameters

Name Type Description
match Predicate<TreeListNode>

A Predicate that specifies the search criteria.

#Returns

Type Description
TreeListNode[]

An array of the TreeListNode objects that match the specific criteria.

#Remarks

The code below illustrates how to return all nodes whose display text for the first TreeListColumn starts with the word “Market”.

TreeListNode[] collection = treeList1.FindNodes(x => x.GetDisplayText(0).StartsWith("Market"));
See Also