# Editor.LineEdit.SetSelection

```csharp
void SetSelection(int start, int length)
```

Set the selected text region.

### Parameters

- `start` (`int`)
- `length` (`int`)

Declared in [Editor.LineEdit](/api/Editor.LineEdit).
Assembly: `Sandbox.Tools`.
