# GetDataForIndex(int)

> Gets data for the specified TreeView item index.

## Definition

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

```csharp
public virtual T GetDataForIndex(int index)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The TreeView item index.

### Returns

| Type | Description |
| ---- | ----------- |
| T    | The data.   |
