# TreeItem class

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
[ContentProperty("Children")]
public class TreeItem : ImageListItem, ITreeItem, INotifyCollectionChanged
```

Item for a [TreeView](https://eto.picoe.ca/api/type/eto.forms.treeview.md)

## Constructors

- [TreeItem](https://eto.picoe.ca/api/type/eto.forms.treeitem/ctor.md): (3 overloads) Initializes a new instance of the [TreeItem](https://eto.picoe.ca/api/type/eto.forms.treeitem.md) class.

## Properties

- [Children](https://eto.picoe.ca/api/type/eto.forms.treeitem/children.md): Gets the children collection
- [Count](https://eto.picoe.ca/api/type/eto.forms.treeitem/count.md): Gets the count of children of this node
- [Expandable](https://eto.picoe.ca/api/type/eto.forms.treeitem/expandable.md): Gets a value indicating whether this [TreeItem](https://eto.picoe.ca/api/type/eto.forms.treeitem.md) is expandable.
- [Expanded](https://eto.picoe.ca/api/type/eto.forms.treeitem/expanded.md): Gets or sets a value indicating whether this [TreeItem](https://eto.picoe.ca/api/type/eto.forms.treeitem.md) is expanded.
- [Parent](https://eto.picoe.ca/api/type/eto.forms.treeitem/parent.md): Gets or sets the parent tree item

## Indexers

- [this[]](https://eto.picoe.ca/api/type/eto.forms.treeitem/item.md): Gets the child [ITreeItem](https://eto.picoe.ca/api/type/eto.forms.itreeitem.md) at the specified index.

## Events

- [CollectionChanged](https://eto.picoe.ca/api/type/eto.forms.treeitem/collectionchanged.md): Occurs when the [TreeItem.Children](https://eto.picoe.ca/api/type/eto.forms.treeitem/children.md) collection is changed.

## Inherited Members

- From [ImageListItem](https://eto.picoe.ca/api/type/eto.forms.imagelistitem.md): [Image](https://eto.picoe.ca/api/type/eto.forms.imagelistitem/image.md)
- From [ListItem](https://eto.picoe.ca/api/type/eto.forms.listitem.md): [Key](https://eto.picoe.ca/api/type/eto.forms.listitem/key.md), [Tag](https://eto.picoe.ca/api/type/eto.forms.listitem/tag.md), [Text](https://eto.picoe.ca/api/type/eto.forms.listitem/text.md), [ToString](https://eto.picoe.ca/api/type/eto.forms.listitem/tostring.md)
