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.
▪like InsertStringATag, in Delphi 2007 and older
▪like InsertStringWTag, in Delphi 2009 and newer
▪with UTF-8 string, in Lazarus
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