User Guide
240 Chapter 14 Scripting the Visual Tools Object Model
SelectAll
Syntax SelectAll();
Description Selects all the text in the active document.
SelectCurrentLine
Syntax SelectCurrentLine();
Description Highlights the current line.
SelectLine
Syntax SelectLine(Index: Integer);
Description Highlights the passed line.
SetCaretPos
Syntax SetCaretPos(x, y: Integer);
Description Sets the current column/line.
TextPosToEditorPos
Syntax TextPosToEditorPos(var nPos:OleVariant):WordBool;
Description Boolean. Converts an index in a text string in a VBScript script to the corresponding
editor position. Takes into account tabs and newlines, which count as two characters
in the text but only as one in the editor. Returns the nPos parameter as an
OleVariant, but its actual type is integer.
This method is only supported in VBScript.
Undo
Syntax Undo();
Description Performs a single undo operation.
Unindent
Syntax Unindent();
Description Removes the indent in the current selection.