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.
Namespace: EWSoftware.ListControlsAssembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
public static IEnumerable<TreeNode> Enumerate(
TreeNode start,
bool enumerateSiblings
)
Public Shared Function Enumerate (
start As TreeNode,
enumerateSiblings As Boolean
) As IEnumerable(Of TreeNode)
public:
static IEnumerable<TreeNode^>^ Enumerate(
TreeNode^ start,
bool enumerateSiblings
)
static member Enumerate :
start : TreeNode *
enumerateSiblings : bool -> IEnumerable<TreeNode>
- 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.
IEnumerableTreeNodeAn enumerable list of tree nodes