# ExpandHeight(bool)

> Option passed to a control to allow or disallow vertical expansion.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.IMGUIModule

```csharp
public static GUILayoutOption ExpandHeight(bool expand)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)):&#x20;

### Returns

| Type                                                                              | Description |
| --------------------------------------------------------------------------------- | ----------- |
| [GUILayoutOption](/engine/6000.0/script-reference/unityengine/guilayoutoption.md) |             |
