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: 2023.4.9.0
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