TreeListNodesIterator.DoVisibleNodesOperation(TreeListVisibleNodeOperation, TreeListNode, TreeListNode) Method

Performs the specified operation over a range of nodes that are not hidden within collapsed groups.

Namespace: DevExpress.XtraTreeList.Nodes.Operations

Assembly: DevExpress.XtraTreeList.v20.1.dll


public virtual void DoVisibleNodesOperation(
    TreeListVisibleNodeOperation operation,
    TreeListNode visibleNodeFrom,
    TreeListNode visibleNodeTo
Public Overridable Sub DoVisibleNodesOperation(
    operation As TreeListVisibleNodeOperation,
    visibleNodeFrom As TreeListNode,
    visibleNodeTo As TreeListNode


Name Type Description
operation TreeListVisibleNodeOperation

A TreeListVisibleNodeOperation descendant that specifies the operation to be performed.

visibleNodeFrom TreeListNode

A TreeListNode object representing the node from which the iteration begins.

visibleNodeTo TreeListNode

A TreeListNode object representing the node at which the iteration ends.


Use the DoVisibleNodesOperation method to traverse through the visible nodes in a specified range. The range of processed nodes is specified by the visibleNodeFrom and visibleNodeTo parameters. If at least one of these parameters represents a node hidden within a collapsed group, no iteration is performed. If these parameters represent the same node, the method performs the specified operation over this node.

The operation performed over the range of nodes is specified by a TreeListVisibleNodeOperation descendant passed as the operation parameter. It is up to you to create the desired descendant and implement the operation logic. Please see the TreeListVisibleNodeOperation class description for details on how to create a custom operation.

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

See Also