wpf-devexpress-dot-xpf-dot-grid-5f1c152a.md
A collection of nodes.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public class TreeListNodeCollection :
TreeListNodeCollectionBase<TreeListNode>,
ITreeListNodeCollection,
IEnumerable
Public Class TreeListNodeCollection
Inherits TreeListNodeCollectionBase(Of TreeListNode)
Implements ITreeListNodeCollection,
IEnumerable
The following members return TreeListNodeCollection objects:
Nodes are stored as nested collections, because the TreeListView displays data in a tree. The collection of root level nodes can be accessed via the TreeListView.Nodes property. Each node has its own collection of child nodes available via the TreeListNode.Nodes property. These child nodes have their own children, etc.
In a bound mode, nodes are created automatically for every record in a data source. In an unbound mode, you need to create nodes manually.
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.
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 learn more, see Nodes Overview.
Object Collection<TreeListNode> DevExpress.Data.TreeList.TreeListNodeCollectionBase<TreeListNode> TreeListNodeCollection
See Also