# stretchWidth

> Can GUI elements of this style be stretched horizontally for better layouting?

## Definition

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

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

### Examples

```csharp
using UnityEngine;

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