TCustomRichViewEdit.InsertStringTag, InsertStringATag, InsertStringWTag
|Top Previous Next|
The methods Insert text string s with associated Tag in the position of caret.
function InsertStringTag(const s: String; const Tag: TRVTag): Boolean;
(introduced in version 1.6)
Methods type: editing-style method for insertion.
▪s parameter must not contain CR, LF characters (#13 and #10) and page break character (#12);
▪TAB characters are always replaced with spaces, even if SpacesInTab=0.
▪the inserted string is not merged with surrounding text items, even if it has the same text style and tag.
Do not overuse these methods. Use InsertText when possible.
▪InsertStringATag: if the current text style is Unicode, s text will be converted to Unicode (conversion is based on charset of current text style).
▪InsertStringWTag: if the current text style is ANSI, s text will be converted to ANSI (conversion is based on charset of current text style).
▪InsertStringTag works like InsertStringWTag in Delphi/C++Builder 2009 or newer, and like InsertStringATag in the older versions of Delphi/C++Builder.
True if the insertion was successful (it can fail due to protection, or when inserting in table having multicell selection)
See also methods:
See also properties:
See also properties of TRVStyle:
TRichView © trichview.com