# flex

> Return true if the spacer stretches or shrinks to occupy available space.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor.UIElements](/engine/6000.7/script-reference/unityeditor/uielements.md)
* **Assembly:** UnityEditor.CoreModule

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