rvico TRichView Reference | TRichView | TRVRTFReaderProperties

TRVRTFReaderProperties

Properties   Methods

Top  Previous  Next

This is a type of TRichView.RTFReadProperties. It contains properties for controlling RTF import in TRichView and TRichViewEdit. Do not create objects of this class yourself, use this property instead.

Unit RVRTFProps.

Syntax

TRVRTFReaderProperties = class (TPersistent)

Properties

The most important properties are:

ParaStyleMode;

TextStyleMode;

UnicodeMode.

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 RTF 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).


TRichView © trichview.com