rvico TRichView Reference | Item Types

Numbered Sequences

Top  Previous  Next

Numbered sequence is a non-text item looking like text and displaying number. For example, this item type can be used for numbering pictures, tables or formulas. This text cannot be wrapped (always displayed on one line).

Class for this item type is TRVSeqItemInfo  (see for detailed information).

Style of this item type: rvsSequence (-202)

Methods of TCustomRichView

The following viewer-style method adds item of this type to the end of the document:

AddItem (create TRVSeqItemInfo object, add it using AddItem)

The following method returns TRVSeqItemInfo object

GetItem

Methods of TCustomRichViewEdit

The following editor-style method inserts item of this type in the position of caret:

InsertItem (create TRVSeqItemInfo object, insert it using InsertItem)

The following method returns TRVSeqItemInfo object at the position of caret:

GetCurrentItem.

Saving and Loading

Export to HTML and text

Numbered sequences are exported as a plain text.

RTF

Numbered sequences can be exported in RTF (all main properties are saved except for FormatString).

You can set RTFReadProperties.IgnoreSequences to True, and numbered sequences will not be imported (imported as a plain text) from RTF.


RichView © Sergey Tkachenko