Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.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.

  • 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.

See Also