# Sandbox.UI.Label.MoveCaretLine

```csharp
void MoveCaretLine(int offset_line, bool select)
```

Move the text caret to next or previous line.

### Parameters

- `offset_line` (`int`): How many lines to offset. Negative values move up.
- `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`.
