# TreeViewItemData<T>

> Item structure provided to a TreeView using the default implementation. For more information on usage, refer to TreeView and Create list and tree views.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public readonly struct TreeViewItemData<T>
```

## Constructors

| Constructor                                                                                                                                                                                               | Description                                                                                                                                 |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| [TreeViewItemData\`1(System.Int32,\`0,System.Collections.Generic.List\{UnityEngine.UIElements.TreeViewItemData\{\`0}})](/engine/6000.6/script-reference/unityengine/uielements/treeviewitemdata1/ctor.md) | Creates a [TreeViewItemData\<T>](/engine/6000.6/script-reference/unityengine/uielements/treeviewitemdata1.md) with all required parameters. |

## Properties

| Property                                                                                               | Description                            |
| ------------------------------------------------------------------------------------------------------ | -------------------------------------- |
| [children](/engine/6000.6/script-reference/unityengine/uielements/treeviewitemdata1/children.md)       | Children of this tree item.            |
| [data](/engine/6000.6/script-reference/unityengine/uielements/treeviewitemdata1/data.md)               | Data for this item.                    |
| [hasChildren](/engine/6000.6/script-reference/unityengine/uielements/treeviewitemdata1/haschildren.md) | Whether this item has children or not. |
| [id](/engine/6000.6/script-reference/unityengine/uielements/treeviewitemdata1/id.md)                   | Id of the item.                        |
