# GetIndentationDepthByIndex(int)

> Return the depth of the element at that index.

## Definition

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

```csharp
public int GetIndentationDepthByIndex(int index)
```

### Parameters

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

### Returns

| Type                                                       | Description               |
| ---------------------------------------------------------- | ------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The depth of the element. |
