Class : TA_Commands
ShortName : TA_Commands
Methods:
Initialize(TA As TextArea)
Initializes the object. You can add parameters to this method if needed.
Backward
Moves the caret position backward.
CancelEdit
If the field is currently being edited, this call will set text to the last commited value.
Clear
Clears the text.
CommitValue
Commit the current text and convert it to a value.
Copy
Transfers the currently selected range in the text to the clipboard, leaving the current selection.
Cut
Transfers the currently selected range in the text to the clipboard, removing the current selection.
DeleteNextChar As Boolean
Deletes the character that follows the current caret position from the text if there is no selection, or deletes the selection if there is one.
DeletePreviousChar As Boolean
Deletes the character that precedes the current caret position from the text if there is no selection, or deletes the selection if there is one.
DeleteText(Start As Int, TEnd As Int)
Removes a range of characters from the content.
Deselect
Clears the selection.
End_
Moves the caret to after the last char of the text.
EndOfNextWord
Moves the caret to the end of the next word.
ExtendSelection(Pos As Int)
This function will extend the selection to include the specified pos.
Forward
Moves the caret position forward.
GetSelectedText As String
Gets the value of the property selectedText.
GetText(Start As Int, TEnd As Int) As String
Returns a subset of the text input's content.
Home
Moves the caret to before the first char of the text.
InsertText(Index As Int, Text As String)
Inserts a sequence of characters into the content.
IsRedoable As Boolean
Gets the value of the property redoable.
IsUndoable As Boolean
Gets the value of the property undoable.
NextWord
Moves the caret to the beginning of next word.
Paste
Transfers the contents in the clipboard into this text, replacing the current selection.
PositionCaret(Pos As Int)
Positions the caret to the position indicated by pos.
PreviousWord
Moves the caret to the beginning of previous word.
Redo
If possible, redoes the last undone modification.
ReplaceSelection(Replacement As String)
Replaces the selection with the given replacement String.
ReplaceText(Start As Int, TEnd As Int, Text As String)
Replaces a range of characters with the given text.
SelectBackward
Moves the selection backward one char in the text.
SelectEnd
Moves the caret to after the last char of text.
SelectEndOfNextWord
Moves the caret to the end of the next word.
SelectForward
Moves the selection forward one char in the text.
SelectHome
Moves the caret to before the first char of text.
SelectNextWord
Moves the caret to the beginning of next word.
SelectPositionCaret(Pos As Int)
Positions the caret to the position indicated by pos and extends the selection, if there is one.
SelectPreviousWord
Moves the caret to the beginning of previous word.
SelectRange(Anchor As Int, CaretPosition As Int)
Positions the anchor and caretPosition explicitly
Undo
If possible, undoes the last modification.