# autoExpand

> When true, items are automatically expanded when added to the TreeView.

## Definition

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

```csharp
public bool autoExpand { get; set; }
```
