Gets the collection of root nodes.
public TreeListNodeCollection Nodes { get; }
Public ReadOnly Property Nodes As TreeListNodeCollection
To iterate through the nodes, do the following.
Create a new instance of the TreeListNodeIterator class. Multiple constructors allow you to specify a start node or a collection of nodes, along with whether to process only visible nodes.
If you have specified a collection of nodes, nodes are processed starting from the first node within a specified collection.
Use the TreeListNodeIterator.MoveNext method to iterate through nodes. The TreeListNodeIterator.Current property returns the processed node. Each time the TreeListNodeIterator.MoveNext method is called, the Node Iterator moves to the next node in the hierarchy and updates the TreeListNodeIterator.Current property. If the current node is the last node, the TreeListNodeIterator.MoveNext method returns false.
To reset the Node Iterator to its initial state, call the TreeListNodeIterator.Reset method.
To learn more, see Nodes and Binding to Self-Referential Data Structure.