mojox.TextView - nitrologic/monkey2 GitHub Wiki
Class TextView
The TextView class.
Structs | |
---|---|
Word |
Classes | |
---|---|
WordIterator |
Fields | |
---|---|
CursorMoved | Invoked when cursor moves. |
Constructors | |
---|---|
New | Creates a new text view. |
Properties | |
---|---|
Anchor | Anchor character index. (read only) |
BlockCursor | (Deprecated: Use CursorType.) |
CanCopy | True if copy available. (read only) |
CanCut | True if cut available. (read only) |
CanPaste | True if paste available. (read only) |
CanRedo | True if redo available. (read only) |
CanUndo | True if undo available. (read only) |
CharHeight | Approximate character height. (read only) |
CharWidth | Approximate character width. (read only) |
Cursor | Cursor character index. (read only) |
CursorBlinkRate | Cursor blink rate. |
CursorColor | Cursor color. |
CursorLine | Line the cursor is on. (read only) |
CursorRect | Cursor rect. (read only) |
CursorType | Cursor type. |
Document | Text document. |
LineHeight | Approximate line height. (read only) |
ReadOnly | Read only flag. |
SelectionColor | Selection color. |
TabStop | Tabstop. |
Text | Text. |
TextColors | Text colors. |
WordWrap | WordWrap flag. |
Methods | |
---|---|
AppendText | Appends text. |
CharAtPoint | Returns the index of the character nearest to a given point. |
CharRect | Returns the rect containing a character at a given index. |
Clear | Clears all text. |
Copy | Performs a copy. |
Cut | Performs a cut. |
GotoLine | Move cursor to line. |
LineAtPoint | |
LineRect | Gets the bounding rect for a line. |
Paste | Performs a paste. |
Redo | Performs a redo. |
ReplaceText | Replaces current selection. |
SelectAll | Selects all text. |
SelectLine | Selects a line. |
SelectText | Selects text in a range. |
Undo | Performs an undo. |