# GetParentIdForIndex(int)

> Gets the specified TreeView item's parent identifier.

## Definition

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

```csharp
public int GetParentIdForIndex(int index)
```

### Parameters

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

### Returns

| Type                                                       | Description                            |
| ---------------------------------------------------------- | -------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The TreeView item's parent identifier. |
