TRVRTFReaderProperties

Properties

<< Click to display table of contents >>

TRVRTFReaderProperties

Properties

This is a type of TRichView.RTFReadProperties. It contains properties for controlling RTF and DocX import in TRichView and TRichViewEdit.

Do not create objects of this class yourself, use this property instead.

Unit [VCL/FMX] RVRTFProps / fmxRVRTFProps.

Syntax

TRVRTFReaderProperties = class (TPersistent)

Properties

The most important properties are:

ParaStyleMode;

TextStyleMode.

The following properties allow to ignore some part of RTF content:

IgnoreBookmarks;

IgnoreFields;

IgnoreNotes;

IgnorePictures;

IgnoreSequences;

IgnoreTables;

SkipHiddenText;

ReadDocParameters.

Reading Hyperlinks

By default, hyperlinks targets are loaded in items tags. Use TCustomRichView.OnReadHyperlink to customize loading.

Reading Images

The following types of RTF pictures are supported (if IgnorePictures = False):

bitmaps (DIB and DDB), loaded as TBitmap;

metafiles (WMF and EMF), loaded as TMetafile; if metafile contains only a bitmap, it can be loaded as TBitmap, see ExtractMetafileBitmaps;

Jpegs, loaded as TJPEGImage;

PNG, if PNG class is specified (for Delphi 2009+, TPngImage is used by default; you can specify a PNG class using RVGraphicHandler.RegisterPngGraphic);

external images, loaded from files (TCustomRichView.OnImportPicture event occurs).

DocX may contain images of other types (such as Gif).