s&box docs

public class Editor.TextEdit : Editor.Widget

A multi-line text entry. See `Editor.LineEdit` for a single line version.

Constructors

Showing 1 constructors

public TextEdit(Editor.Widget parent = null)

Parameters

  • parent: Default: null

Methods

Showing 15 methods

public void AppendHtml(string html)

public void AppendPlainText(string text)

public void CenterOnCursor()

public virtual void Clear()

public string GetAnchorAt(Vector2 point)

public Editor.TextCursor GetCursorAtBlock(int block)

protected virtual void OnTextChanged(string value)

Called when text changed.

public void ScrollToBottom()

public void SelectAll()

public void SetTextCursor(Editor.TextCursor cursor)

Properties

Showing 16 properties

public bool Editor.TextEdit.BackgroundVisible { get; set; }

public bool Editor.TextEdit.CenterOnScroll { get; set; }

public bool Editor.TextEdit.Editable { get; set; }

public string Editor.TextEdit.Html { get; set; }

public bool Editor.TextEdit.LinksClickable { get; set; }

public int Editor.TextEdit.MaximumBlockCount { get; set; }

public string Editor.TextEdit.PlaceholderText { get; set; }

public string Editor.TextEdit.PlainText { get; set; }

public virtual bool Editor.TextEdit.ReadOnly { get; set; }

public float Editor.TextEdit.TabSize { get; set; }

public bool Editor.TextEdit.TextSelectable { get; set; }

Metadata

FieldValue
NamespaceEditor
Typeclass
AssemblySandbox.Tools
Doc IDT:Editor.TextEdit

On this page

Constructorspublic TextEdit(Editor.Widget parent = null)Methodspublic System.Void AppendHtml(System.String html)public System.Void AppendPlainText(System.String text)public System.Void CenterOnCursor()public virtual System.Void Clear()public System.String GetAnchorAt(Vector2 point)public Editor.TextCursor GetCursorAtBlock(System.Int32 block)public Editor.TextCursor GetCursorAtPosition(Vector2 position)public Sandbox.Rect GetCursorRect(Editor.TextCursor cursor)public Editor.TextCursor GetTextCursor()protected virtual System.Void OnBlur(Editor.FocusChangeReason reason)protected virtual System.Void OnFocus(Editor.FocusChangeReason reason)protected virtual System.Void OnTextChanged(System.String value)public System.Void ScrollToBottom()public System.Void SelectAll()public System.Void SetTextCursor(Editor.TextCursor cursor)Propertiespublic System.Boolean Editor.TextEdit.BackgroundVisible { get; set; }public System.Boolean Editor.TextEdit.CenterOnScroll { get; set; }public virtual Editor.CursorShape Editor.TextEdit.Cursor { get; set; }public System.Boolean Editor.TextEdit.Editable { get; set; }public Editor.ScrollBar Editor.TextEdit.HorizontalScrollbar { get; set; }public Editor.ScrollbarMode Editor.TextEdit.HorizontalScrollbarMode { get; set; }public System.String Editor.TextEdit.Html { get; set; }public System.Boolean Editor.TextEdit.LinksClickable { get; set; }public System.Int32 Editor.TextEdit.MaximumBlockCount { get; set; }public System.String Editor.TextEdit.PlaceholderText { get; set; }public System.String Editor.TextEdit.PlainText { get; set; }public virtual System.Boolean Editor.TextEdit.ReadOnly { get; set; }public System.Single Editor.TextEdit.TabSize { get; set; }public System.Boolean Editor.TextEdit.TextSelectable { get; set; }public Editor.ScrollBar Editor.TextEdit.VerticalScrollbar { get; set; }public Editor.ScrollbarMode Editor.TextEdit.VerticalScrollbarMode { get; set; }Metadata