API ReferenceSandbox.UI
TextEntryclass
A `Sandbox.UI.Panel` that the user can enter text into.
Constructors2
Showing 2 constructors
No results match this filter.
Methods63
Showing 63 methods
public void ClearUndoHistory()
Throw the history away - for when the text is replaced by something the user didn't do.
Returns:
void—protected virtual void OnDrop(Sandbox.UI.PanelEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | PanelEvent | — |
Returns:
void—protected virtual void OnTripleClick(Sandbox.UI.MousePanelEvent e)
A third click takes the whole line - which is everything, when there's only one line.
| Parameter | Type | Description |
|---|---|---|
| e | MousePanelEvent | — |
Returns:
void—public void Redo()
Put back whatever the last undo took away.
Returns:
void—public void Undo()
Put back the text, caret and selection from before the last edit.
Returns:
void—No results match this filter.
Properties69
Showing 69 properties
protected bool Sandbox.UI.TextEntry.CanEdit { get; set; }
Whether the text can be changed at all right now.
Returns:
bool—public bool Sandbox.UI.TextEntry.ReadOnly { get; set; }
The text can be selected and copied, but not changed. Unlike `Sandbox.UI.TextEntry.Disabled` this still takes focus, so it reads and behaves like text rather than like a dead control.
Returns:
bool—No results match this filter.