Skip to main content

TreeListNodesIterator.DoLocalOperation(TreeListOperation, TreeListNodes) Method

Performs the specified operation over the predefined set of nodes and their children.

Namespace: DevExpress.XtraTreeList.Nodes.Operations

Assembly: DevExpress.XtraTreeList.v24.1.dll

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

Declaration

public virtual void DoLocalOperation(
    TreeListOperation operation,
    TreeListNodes nodes
)

Parameters

Name Type Description
operation TreeListOperation

A TreeListOperation descendant representing the operation to be performed.

nodes TreeListNodes

A TreeListNodes object representing the collection of nodes across which the operation is performed.

Remarks

Use the DoLocalOperation method to traverse through the collection of nodes specified by the nodes parameter and their child nodes. The operation performed on nodes is specified by a TreeListOperation descendant object. It is up to you to create a descendant that suits your needs. Please refer to this class description for details on creating custom operations.

The object representing the operation to be performed can prohibit visiting specific nodes from the collection. This can take place in the following cases.

For visited nodes the TreeListOperation.Execute method is called if the TreeListOperation.CanContinueIteration property returns True.

Note: if the root nodes collection is passed as the nodes parameter, the DoLocalOperation method acts like the TreeListNodesIterator.DoOperation method.

See Also