# Sandbox.UI.Label.MoveToWordBoundaryRight

```csharp
void MoveToWordBoundaryRight(bool select)
```

Move the text caret to the closest word start or end to the right of current position.

This simulates holding Control key while pressing right arrow key.

### Parameters

- `select` (`bool`): Whether to also add the characters we passed by to the selection.

Declared in [Sandbox.UI.Label](/api/Sandbox.UI.Label).
Assembly: `Sandbox.Engine`.
