API ReferenceEditor
TextEditclass
A multi-line text entry. See `Editor.LineEdit` for a single line version.
Constructors1
Showing 1 constructors
No results match this filter.
Methods15
Showing 15 methods
public void AppendHtml(string html)
| Parameter | Type | Description |
|---|---|---|
| html | string | — |
Returns:
void—public void AppendPlainText(string text)
| Parameter | Type | Description |
|---|---|---|
| text | string | — |
Returns:
void—public void CenterOnCursor()
Returns:
void—public virtual void Clear()
Returns:
void—public Editor.TextCursor GetCursorAtBlock(int block)
| Parameter | Type | Description |
|---|---|---|
| block | int | — |
public Editor.TextCursor GetCursorAtPosition(Vector2 position)
| Parameter | Type | Description |
|---|---|---|
| position | Vector2 | — |
public Sandbox.Rect GetCursorRect(Editor.TextCursor cursor)
| Parameter | Type | Description |
|---|---|---|
| cursor | TextCursor | — |
public Editor.TextCursor GetTextCursor()
protected virtual void OnBlur(Editor.FocusChangeReason reason)
| Parameter | Type | Description |
|---|---|---|
| reason | FocusChangeReason | — |
Returns:
void—protected virtual void OnFocus(Editor.FocusChangeReason reason)
| Parameter | Type | Description |
|---|---|---|
| reason | FocusChangeReason | — |
Returns:
void—protected virtual void OnTextChanged(string value)
Called when text changed.
| Parameter | Type | Description |
|---|---|---|
| value | string | — |
Returns:
void—public void ScrollToBottom()
Returns:
void—public void SelectAll()
Returns:
void—public void SetTextCursor(Editor.TextCursor cursor)
| Parameter | Type | Description |
|---|---|---|
| cursor | TextCursor | — |
Returns:
void—No results match this filter.
Properties16
Showing 16 properties
public bool Editor.TextEdit.BackgroundVisible { get; set; }
Returns:
bool—public bool Editor.TextEdit.CenterOnScroll { get; set; }
Returns:
bool—public virtual Editor.CursorShape Editor.TextEdit.Cursor { get; set; }
public bool Editor.TextEdit.Editable { get; set; }
Returns:
bool—public Editor.ScrollbarMode Editor.TextEdit.HorizontalScrollbarMode { get; set; }
public string Editor.TextEdit.Html { get; set; }
Returns:
string—public bool Editor.TextEdit.LinksClickable { get; set; }
Returns:
bool—public int Editor.TextEdit.MaximumBlockCount { get; set; }
Returns:
int—public string Editor.TextEdit.PlaceholderText { get; set; }
Returns:
string—public string Editor.TextEdit.PlainText { get; set; }
Returns:
string—public virtual bool Editor.TextEdit.ReadOnly { get; set; }
Returns:
bool—public float Editor.TextEdit.TabSize { get; set; }
Returns:
float—public bool Editor.TextEdit.TextSelectable { get; set; }
Returns:
bool—public Editor.ScrollbarMode Editor.TextEdit.VerticalScrollbarMode { get; set; }
No results match this filter.