TCustomRichView.AddTextNL, AddTextNLA, AddTextNLW
|Top Previous Next|
These methods add one or more text lines to the end of document.
procedure AddTextNL(const s: String;
(changed in version 18)
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.
OtherParaNo defines paragraph attributes for the subsequent lines of text. Must be >=0.
DefAsSingleParagraph: If False, AddTextNLW uses the current add-paragraph mode (see SetAddParagraphMode). If True, it treats #13 and #10 as line breaks, not paragraph breaks. WideChar($2029) ("paragraph separator") always initiates a new paragraph. WideChar($2028) ("line separator") always initiates a new line.
AsSingleParagraph: If False, AddTextNLA uses the current add-paragraph mode (see SetAddParagraphMode). If True, it treats #13 and #10 as line breaks, not paragraph breaks.
Tag – tag of this picture item.
AddTextNLW supports the Unicode byte order marks characters (if it's present, it must be the first character in s).
Methods type: viewer-style.
Internally, text is stored as Unicode. AddTextNLA converts ANSI to Unicode. A code page for conversion is calculated basing on Style.TextStyles[StyleNo]. Charset. If it is equal to DEFAULT_CHARSET, and for non-text items, Style.DefCodePage is used.
▪like AddTextNLA, in Delphi 2007 and older
▪like AddTextNLW, in Delphi 2009 and newer
▪with UTF-8 string, in Lazarus
If style templates are used, the component may automatically change text style indexes of text items, to provide a consistency of text and paragraph style templates.
See also methods:
See also methods of TRichViewEdit:
See also properties of TRVStyle:
TRichView © trichview.com