TreeNodeEnumeratorEnumerate Method

This method can be used to enumerate tree nodes in a more convenient way using a foreach loop without having to manually construct and manage the enumerator.

Definition

Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.18.0+3a863295c73252b22e8ab6862ed6bdc57bcbd0fc
public static IEnumerable<TreeNode> Enumerate(
	TreeNode start,
	bool enumerateSiblings
)

Parameters

start  TreeNode
The node at which to start enumeration.
enumerateSiblings  Boolean
True to enumerate the starting node's siblings as well or false to stop after enumerating the starting node and all of its children.

Return Value

IEnumerableTreeNode
An enumerable list of tree nodes

See Also