# selectAllOnFocus

> Controls whether the element's content is selected upon receiving focus.

## Definition

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

```csharp
[CreateProperty]
public bool selectAllOnFocus { get; set; }
```
