Inserts item at the position of caret.
function InsertItem(const Name: TRVUnicodeString;
Item: TCustomRVItemInfo): Boolean;
(introduced in version 1.4; changed in version 18)
This is the most general method for inserting items. It can be used to insert items of custom types.
This method is usually used for inserting tables, labels, sequences, footnotes, endnotes, references to notes, page numbers, page counts, equations (i.e. for items that does not have special insertion methods).
The detailed description of item types is beyond the scope of this help file. Briefly, standard item types are declared and implemented in RVItem unit. All item types are classes derived from one base class – TCustomRVItemInfo.
Text – some text associated with this item (the name of item). It must not contain CR and LF characters.
Item – item itself. Item.ParaNo defines paragraph style of item (index in Style.ParaStyles).
Method type: editing-style method for insertion.
If True, the item was inserted successfully.
See also methods of TCustomRichView: