|
TCustomRichView.AddTextBlockNL |
Top Previous Next |
|
Adds one or more text lines to the end of document as one paragraph. procedure AddTextBlockNL(s: String; StyleNo, ParaNo: Integer); (Introduced in version 1.3) This method is the same as AddTextNL, but adds all new text items as one paragraph (see SetAddParagraphMode): line breaks inside paragraph are used instead of paragraph breaks. It adds the first new text item in the current add-paragraph-mode, then calls SetAddParagraphMode(False), then adds the rest of text, then restores add-paragraph-mode.
Parameters: s is a text string to add. It may contain special characters:CR, LF, TAB, FF (#13, #10, #9, #12). #9 characters may be inserted as tabulators, depending on value of SpacesInTab property of the linked RVStyle component. #12 characters add page breaks. All possible line breaks modes (CR, LF, CR+LF, LF+CR) are supported. StyleNo is an index in the TextStyles collection of the linked RVStyle component, or rvsDefStyle constant. It defines font attributes for the text. ParaNo is an index in the ParaStyles collection of the linked RVStyle component, must be >=0 for this method. It defines attributes for the new paragraph. Methods type:
See also methods:
See also methods of TRichViewEdit: See also properties of TRVStyle: See also: |