# Sandbox.UI.TextEntry.HistoryMaxItems

```csharp
int HistoryMaxItems { get; set; }
```

Maximum amount of items [Sandbox.UI.TextEntry.AddToHistory](/api/Sandbox.UI.TextEntry/AddToHistory) will keep.
Oldest items will be discarded as new ones are added.

Declared in [Sandbox.UI.TextEntry](/api/Sandbox.UI.TextEntry).
Assembly: `Sandbox.Engine`.
