TRichView Item Types

<< Click to display table of contents >>

TRichView Item Types

Document in TRichView can contain items of the following types:

Text can have different fonts. Each text item is linked to one item in the collection of text attributes ("styles"). A text style defines a font of the text item and some additional effects (such as background color, vertical offset (for subscripts/superscripts), overline), it has some properties affecting editing. A text style can define a hyperlink; for hyperlinks you can define additional properties such as mouse cursor and hover color. A text style also defines whether the text is in ANSI or Unicode encoding.

Tabulators are used instead of TAB (#9) characters.

Pictures: you can insert any Delphi graphic type in RichView. You can use TBitmap, TIcon, TMetafile, TJpegImage or third-party graphic classes. Gif images can be animated.

"Hot Pictures": the same as pictures, but they are also hypertext links.

"Bullets" are pictures from ImageList. Bullets provide an easy and efficient way for adding many similar "standard" pictures in the document. You can use any number of ImageLists. These bullets have no relation to paragraph bullets and numbering; see "list markers" below.

"Hotspots" are bullets-"hypertext links". They can specify two pictures: normal and "hot" (for highlighting effect under the mouse pointer)

"Breaks" are horizontal lines.

Controls: You can use any Delphi/C++Builder control merged in text.

List Markers represent paragraph bullets & numbering.

Tables arrange subitems in rows and columns.

Labels are non-text items looking like a text.

Numbered sequences allow to insert numbered fields (like "Fig. 1", "Fig. 2", ...) in text.

Endnotes.

Footnotes.

Sidenotes are notes displayed in floating boxes.

Text boxes

References to parent note

"Page number" fields

"Page count" fields

Mathematical expressions [VCL]

Non-text items have an associated string referred in this help as a "name of item". TRichView does not use these names itself, use them for your own purposes.

Items are organized in paragraphs. You can define your paragraph attributes ("styles") with different alignment, indents, spacing, line height, background and other attributes.

All the information above can be saved and loaded to stream, file, database field or clipboard in a special format (RVF). You can also export document as HTML, RTF, DocX file or print it (see export to html).


Internally, all item types are implemented as classes. Standard item types are implemented in the unit RVItem.

A detailed description of item types is beyond the scope of this help file.

All item types are classes derived from one base class: TCustomRVItemInfo.


See also: detailed overview of item types