AddTextNL
Description
Adds one or more text lines to the end of document.
procedure AddTextNL (const s: String; StyleNo, FirstParaNo, OtherParaNo: Integer; AsSingleParagraph: Boolean = False)
Parameter |
Description |
s |
Text string to add. It may contain special characters:CR, LF, TAB, FF (#13, #10, #9, #12). |
StyleNo |
The number of the text style. Not used, use the value 0. |
FirstParaNo |
If FirstParaNo=-1, the method adds an item to the end of the last paragraph. If FirstParaNo>=0, this item starts a new paragraph. |
OtherParaNo |
Defines paragraph attributes for the subsequent lines of text. Must be >=0. |
AsSingleParagraph |
If False, each new line will be added as a new paragraph. If True, it treats #13 and #10 as line breaks, not paragraph breaks. |
Example
Form1.RichEdit1.AddTextNL('текст', 0, -1, 0);
Form1.RichEdit1.Format; // To apply the changes to the document