# Sandbox.UI.TextEntry.InsertText

```csharp
void InsertText(string text)
```

Inserts text at the caret, replacing the selection. Read-only and disabled entries ignore the call.

### Parameters

- `text` (`string`)

Declared in [Sandbox.UI.TextEntry](/api/Sandbox.UI.TextEntry).
Assembly: `Sandbox.Engine`.
