class
HistoryList<T>
public sealed class HistoryList<T> A helper class to store a list of strings, which can then be navigated around, saved, restored
Constructors
HistoryList<T>() Properties
| Name | Type | Description |
|---|---|---|
MaxItems | Int32 | The maximum history length |
Debug | Boolean | Print debug information on navigation |
Current | T | |
StateCookie | String | |
CanGoBack | Boolean | |
CanGoForward | Boolean |
Methods
Void Clear() Void Add(T text) Boolean Navigate(Int32 delta) Navigate to delta positions from the current position. For example, -1 is backwards. Returns false if nothing changed.
Fields
| Name | Type | Description |
|---|---|---|
OnNavigate | Action<T> | Called when navigations successfully happened. |