rvico TRichView Reference | TRichView | TRVRTFReaderProperties

TRVRTFReaderProperties.TextStyleMode

Top  Previous  Next

Defines a mode for extraction of character formatting from RTF

property TextStyleMode: TRVReaderStyleMode;

Mode

Meaning

rvrsUseSpecified

All paragraph formatting in RTF will be ignored, all text will have style specified in TextStyleNo property.

rvrsUseClosest

RTF formatting will be mapped to the the most similar existing text style.

rvrsAddIfNeeded

This mode provides the most closer look to the original RTF. RichView will try to use existing styles as much as possible, but if style with the desired formatting does not exist, RichView will add a new one to the end of the collection of text styles and use it.

Default value:

rvrsUseClosest for components created at runtime.
For components placed on form at designtime, initial value of this property is defined in the component editor for TRichView. By default, the component editor applies "allow adding styles dynamically" mode to new TRichView components, and this property is set to rvrsAddIfNeeded.

See also:

TextStyleNo;
ParaStyleMode.


RichView © Sergey Tkachenko