# GetExpanded()

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

## Definition

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

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

### Returns

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

### Remarks

Additional Resources: [TreeView.SetExpanded](/engine/6000.0/script-reference/unityeditor/imgui/controls/treeview/setexpanded.md).
