# IsExpanded(TIdentifier)

> Returns true if the TreeViewItem with ID id is currently expanded.

## Definition

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

## IsExpanded(T)

```csharp
public bool IsExpanded(TIdentifier id)
```

### Parameters

**** (T): TreeViewItem ID.

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |
