InsertText
Description
Inserts text at the cursor position.
procedure InsertText (const text: String; CaretBefore: Boolean=False);
Parameter |
Description |
text |
Text may contain special characters:CR, LF, TAB, FF (#13, #10, #9, #12). |
CaretBefore |
Optional parameter. If CaretBefore=True, the caret will be positioned before the inserted text after insertion (default positioning is after the text). |
Example
Form1.RichEdit1.InsertText('text');
Form1.RichEdit1.InsertText('texts', True);