# Sandbox.UI.Label.InsertText

```csharp
void InsertText(string text, int pos, System.Nullable<int> endpos = null)
```

### Parameters

- `text` (`string`)
- `pos` (`int`)
- `endpos` (`System.Nullable<int>`), default `null`

Declared in [Sandbox.UI.Label](/api/Sandbox.UI.Label).
Assembly: `Sandbox.Engine`.
