# ExpandItemByIndex(int, bool, bool)

> Expands the item with the specified index, making his children visible. Allows to expand the whole hierarchy under that item.

## Definition

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

```csharp
public void ExpandItemByIndex(int index, bool expandAllChildren, bool refresh = true)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The item index.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether the whole hierarchy under that item will be expanded.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether to refresh items or not. Set to false when doing multiple operations on the tree, to only do one RefreshItems once all operations are done.
