ITreeItem

References
Interface for an item in a TreeView
Remarks: This can be used instead of TreeItem when you want to use your own class as the item object of a tree.

Properties

Count

int Count { get; }
Gets the number of items in this data store.
inherited fromIDataStore<T>

Expandable

bool Expandable { get; }
Gets a value indicating whether this ITreeItem<T> is expandable.
inherited fromITreeItem<T>
Remarks: When true, this will typically show a glyph that can be clicked to expand the item to show its children. When false, the glyph is not shown and the node is not expandable by the user.
true if expandable; otherwise, false.

Expanded

bool Expanded { get; set; }
Gets or sets a value indicating whether this ITreeItem<T> is expanded.
inherited fromITreeItem<T>
Remarks: When expanded, the children of the tree item will be shown. This will be set automatically by the TreeGridView when the item is expanded or collapsed and keep in in sync with the view.
true if expanded; otherwise, false.

Key

string Key { get; }
Gets or sets the unique key of the item.
inherited fromIListItem
Remarks: The key is typically used to identify each item uniquely. If no key is specified, the IListItem.Text is used as the key.
The key of the item.

Parent

T Parent { get; set; }
Gets or sets the parent of this item.
inherited fromITreeItem<T>

Indexers

this[]

T this[int index] { get; }
Gets the object at the specified index.
inherited fromIDataStore<T>