# Sandbox.UI.Button.SetText

```csharp
void SetText(string text)
```

Set the text for the button. Calls `Text = value`

### Parameters

- `text` (`string`)

Declared in [Sandbox.UI.Button](/api/Sandbox.UI.Button).
Assembly: `Sandbox.Engine`.
