# Sandbox.UI.Label.MoveCaretPos

```csharp
void MoveCaretPos(int delta, bool select = False)
```

Move the text caret by given amount.

### Parameters

- `delta` (`int`): How many characters to the right to move. Negative values move left.
- `select` (`bool`), default `False`: Whether to also add the characters we passed by to the selection.

Declared in [Sandbox.UI.Label](/api/Sandbox.UI.Label).
Assembly: `Sandbox.Engine`.
