AddNL
Description
Adds a text element to the end of the document.
procedure AddNL(const s: String; StyleNo: Integer; ParaNo: Integer = -1);
Parameter |
Description |
s |
Text string to add. It must not contain CR, LF, TAB, FF characters (#13, #10, #9, #12). To add several lines of text use AddTextNL |
StyleNo |
Style number. Not used, use the value 0. |
ParaNo |
Optional parameter. If ParaNo=-1, the methods add an item to the end of the last paragraph. If ParaNo>=0, this item starts a new paragraph. |
Example
Form1.RichEdit1.AddNL('Hello', 0);
Form1.RichEdit1.Format; // To apply the changes to the document