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/DocX 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);

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

JPEG images;

PNG images;

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

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