# stretchHeight

> Can GUI elements of this style be stretched vertically for better layout?

## Definition

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

```csharp
public bool stretchHeight { get; set; }
```

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void OnGUI()
    {
        GUI.skin.button.stretchHeight = true;
    }
}
```
