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.v18.2.dll
Declaration
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.
- The TreeListOperation.NeedsFullIteration property of the operation object returns false. Only nodes, that have children are visited in such cases.
- The TreeListOperation.NeedsVisitChildren method of the operation object returns false for some nodes. These nodes are not visited.
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.
Related GitHub Examples
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.