TreeListNodesIterator.Do(Action<TreeListNode>, Predicate<TreeListNode>, Predicate<TreeListNode>, Predicate<TreeListNode>) Method
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
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. |