Skip to main content
A newer version of this page is available. .

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.v19.1.dll

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DoLocalOperation(TreeListOperation, TreeListNodes) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also