Property Items
Items
Gets a collection containing all the root items in the control.
public virtual Collection<TreeViewItem> Items { get; }
Property Value
- Collection<TreeViewItem>
A Collection<T> that contains all the root items in the TreeView control.
Remarks
Using the Collection<T> returned by this property, you can add items, remove items, and obtain a count of items. The Items property holds a collection of TreeViewItem objects, each of which has a Items property that can contain its own child items collection.