# expandedIDs

> This is the list of currently expanded TreeViewItem IDs.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor.IMGUI.Controls](/engine/6000.3/script-reference/unityeditor/imgui/controls.md)
* **Assembly:** UnityEditor

```csharp
public List<TIdentifier> expandedIDs { get; set; }
```

### Remarks

This state is maintained by the TreeView when the user interacts with the TreeView and when using the API. The TreeView assumes the list is sorted. So if setting this directly ensure to to sort the list afterwards: expandedIDs.Sort(); It is recommended to use the [TreeView\<TIdentifier>.SetExpanded](/engine/6000.3/script-reference/unityeditor/imgui/controls/treeview1/setexpanded.md) instead which automatically handles this.
