TreeItem
ImageListItemListItem[ContentProperty("Children")]
public class TreeItem : ImageListItem, ITreeItem, INotifyCollectionChanged
Item for a TreeView
Constructors
TreeItem
#Initializes a new instance of the TreeItem class with the specified children
Parameters:
| children (IEnumerable<ITreeItem>) | Children to populate this node with |
TreeItem
#Initializes a new instance of the TreeItem class with the specified children
Parameters:
| children (params ITreeItem[]) | Children to populate this node with |
Properties
Expandable
#Gets a value indicating whether this TreeItem is expandable.
Value:
true if expandable; otherwise, false.Implements: Expandable
Expanded
#Gets or sets a value indicating whether this TreeItem is expanded.
Value:
true if expanded; otherwise, false.Implements: Expanded
Value: The item's image.
Implements: Image
Remarks: The key is typically used to identify each item uniquely. If no key is specified, the ListItem.Text is used as the key.
Value: The key of the item.
Implements: Key
Value: The text.
Implements: Text
Indexers
Methods
Returns: The string
Overrides: Object.ToString