# GetItemDataForId<T>(int)

> Gets data for the specified TreeView item id.

## Definition

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

```csharp
public T GetItemDataForId<T>(int id)
```

### Parameters

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

### Returns

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