# Sandbox.UI.TextEntry.HasClearButton

```csharp
bool HasClearButton { get; set; }
```

If true then Icon/IconPanel will be set to a clear button that clears the text when clicked.

Declared in [Sandbox.UI.TextEntry](/api/Sandbox.UI.TextEntry).
Assembly: `Sandbox.Engine`.
