Back to Devexpress

TreeListNodesIterator.DoVisibleNodesOperation(TreeListVisibleNodeOperation, TreeListNode, TreeListNode) Method

windowsforms-devexpress-dot-xtratreelist-dot-nodes-dot-operations-dot-treelistnodesiterator-dot-dovisiblenodesoperation-x28-treelistvisiblenodeoperation-treelistnode-treelistnode-x29.md

latest4.8 KB
Original Source

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

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

Declaration

csharp
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual void DoVisibleNodesOperation(
    TreeListVisibleNodeOperation operation,
    TreeListNode visibleNodeFrom,
    TreeListNode visibleNodeTo
)
vb
<Browsable(False)>
<EditorBrowsable(EditorBrowsableState.Never)>
Public Overridable Sub DoVisibleNodesOperation(
    operation As TreeListVisibleNodeOperation,
    visibleNodeFrom As TreeListNode,
    visibleNodeTo As TreeListNode
)

Parameters

NameTypeDescription
operationTreeListVisibleNodeOperation

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.

|

Remarks

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

CanContinueIteration(TreeListNode)

DoLocalOperation

DoOperation

Execute(TreeListNode)

TreeListVisibleNodeOperation

TreeListNodesIterator Class

TreeListNodesIterator Members

DevExpress.XtraTreeList.Nodes.Operations Namespace