TRVRTFReaderProperties.ConvertHighlight

<< Click to display table of contents >>

TRVRTFReaderProperties.ConvertHighlight

Specifies the mode of import of text highlighting.

type

  TRVRTFHighlight = // defined in RVScroll.pas

    (rtfhlIgnore, rtfhlFixedColors, rtfhlColorTable); 

 

property ConvertHighlight: TRVRTFHighlight;

(introduced in version 1.7)

RTF editors show text highlighting as a text background color. But this is not a real text background color (which is always imported by TRichView), this is not even a RTF text attribute.

wordhighlightbtn this is a MS Word toolbar button applying text highlighting.

Mode

Meaning

rtfhlIgnore

Highlighting is ignored.

rtfhlFixedColors

Highlighting is converted to text background using a fixed set of colors (according to the old RTF specification)

rtfhlColorTable

Highlighting is converted to text background using RTF color table.

MS Word (and TRichView) always puts 16 default colors to the beginning of RTF color table, so for such documents, both rtfhlFixedColors and rtfhlColorTable work absolutely identically. TRichView itself never saves text background color as a highlight, it uses the special RTF keyword for text background.

It's not recommended to change value of this property.

This property is not used for DocX import.

Default value:

rtfhlColorTable