# GetExpanded()

> Returns a list of TreeViewItem IDs that are currently expanded in the TreeView.

## Definition

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

```csharp
public IList<TIdentifier> GetExpanded()
```

### Returns

| Type                                                                                   | Description       |
| -------------------------------------------------------------------------------------- | ----------------- |
| [IList\<T>](https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1) | TreeViewItem IDs. |

### Remarks

Additional Resources: [TreeView\<TIdentifier>.SetExpanded](/engine/6000.6/script-reference/unityeditor/imgui/controls/treeview1/setexpanded.md).
