# this[]

> Returns the element at the specified index in the hierarchy

## Definition

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

## this\[int]

```csharp
public VisualElement this[int key] { get; }
```

### Parameters

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

### Returns

| Type                                                                                     | Description                                                                                                |
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
| [VisualElement](/engine/6000.5/script-reference/unityengine/uielements/visualelement.md) | The [VisualElement](/engine/6000.5/script-reference/unityengine/uielements/visualelement.md) at this index |

### Remarks

Throws an IndexOutOfRangeException exception if the index is invalid.
