|Top Previous Next|
Adds one item to the end of document.
procedure AddItem(const Text: String; Item: TCustomRVItemInfo);
(introduced in version 1.4)
This is the most general method for appending items to the document. Using this method you can add items of custom types.
For items of standard types it's recommended to use other methods for appending items.
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 – item name, some text associated with this item. It must not contain CR and LF characters.
Item – the item itself. Item.ParaNo defines the paragraph style of item (index in Style.ParaStyles)
Method type: viewer-style.
Unicode note: for Delphi/Unicode 2009 or newer, Text is Unicode string; for the older versions of Delphi/C++Builder, Text is ANSI string. It is converted to ANSI/Unicode, if necessary. Names of non-text items are ANSI strings.
See also methods:
See also methods of TRichViewEdit:
TRichView © trichview.com