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;
IgnoreNotes;
IgnorePictures;
IgnoreSequences;
IgnoreTables;
SkipHiddenText;
ReadDocParameters.

Reading Hyperlinks

Hyperlinks are not loaded unless you provide TCustomRichView.OnReadHyperlink.

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;
external images, loaded from files (TCustomRichView.OnImportPicture event occurs).


RichView © Sergey Tkachenko