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

TreeListNodesIterator.Do(Action<TreeListNode>, Predicate<TreeListNode>, Predicate<TreeListNode>, Predicate<TreeListNode>) Method

In This Article

Performs an operation across all Tree List nodes that fit the specific criteria. Defines a separate criteria to check whether or not this operation should be applied to child nodes as well.

Namespace: DevExpress.XtraTreeList.Nodes.Operations

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public virtual void Do(
    Action<TreeListNode> execute,
    Predicate<TreeListNode> canContinueIteration,
    Predicate<TreeListNode> canExecute,
    Predicate<TreeListNode> visitChildren
)

#Parameters

Name Type Description
execute Action<TreeListNode>

An Action<TreeListNode> delegate that performs an operation on nodes.

canContinueIteration Predicate<TreeListNode>

A Predicate<TreeListNode> delegate that checks whether or not the execute operation should be applied to the remaining nodes.

canExecute Predicate<TreeListNode>

A Predicate<TreeListNode> delegate that checks whether or not the execute operation can be applied to the current node.

visitChildren Predicate<TreeListNode>

A Predicate<TreeListNode> delegate that determines whether or not the nodes iterator should try performing the execute operation on the current node’s children.

See Also