addText

addText(options: Integer;
        text:    String);

The addText method of the JadeTextEdit class adds the string specified in the text parameter to the control content by using the options specified in the options parameter. End-of-line conversion is not performed.

The addition is a single undo action.

The options parameter can be one of the JadeTextEdit class constants listed in the following table.

Class Constant Value Description
ADDTXT_ADD 2 Inserts the text after the current position, which remains unchanged
ADDTXT_APPEND 3 Adds the text to the end of the existing text and moves the caret to the end of the new text and into view
ADDTXT_INSERT 1 Inserts the text before the current position and moves the caret to the end of the added text but does not force it into view
ADDTXT_INSERTREPLACESEL 4 Clears the current selection (if any) and then inserts the text specified in the text parameter before the current caret position, moving the caret to the end of the new text