Skip to main content

TreeListNodesIterator.DoLocal(Action<TreeListNode>, Predicate<TreeListNode>, Predicate<TreeListNode>, Predicate<TreeListNode>, TreeListNodes) Method

Performs a specific operation on TreeList nodes that fit the specific criteria. Can also perform the same operation on child nodes owned by the processed nodes.

Namespace: DevExpress.XtraTreeList.Nodes.Operations

Assembly: DevExpress.XtraTreeList.v24.2.dll

Declaration

public virtual void DoLocal(
    Action<TreeListNode> execute,
    Predicate<TreeListNode> canContinueIteration,
    Predicate<TreeListNode> canExecute,
    Predicate<TreeListNode> visitChildren,
    TreeListNodes nodes
)

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.

nodes TreeListNodes

A TreeListNodes collection that stores nodes which should be exposed to the execute operation.

See Also