rvico TRichView Reference | TRichView

TCustomRichView.AddItem

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.

Usually this method is used for appending tables, labels, sequences, footnotes, endnotes, references to notes.

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.

 

Parameters:

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: viewerstyle viewer-style.

unicode 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:

Format;

FormatTail;

SetAddParagraphMode;

GetItem.

See also methods of TRichViewEdit:

InsertItem.

See also:

Item types;

Other methods for appending items.


TRichView © trichview.com