RichViewStringFormatMethod Typed Constant

<< Click to display table of contents >>

RichViewStringFormatMethod Typed Constant

Unit [VCL/FMX]: CRVData / fmxCRVData;

Syntax

type
  TRVStringFormatMethod =
    (rvsfmAuto, rvsfmEngine, rvsfmTRichView);  
const
  RichViewStringFormatMethod: TRVStringFormatMethod = rvsfmAuto;

This variable specifies formatting methods used in all TRichView and ScaleRichView components. The main question is the method of calculation of the count of characters in the string that fit to the specified width.

Value

Meaning

rvsfmAuto

The components tries to choose the fastest method

rvsfmEngine

The component uses the function provided by API

rvsfmTRichView

The component uses its own method (a binary search on string widths).

About the "auto" method

If TextEngine=rvteUniscribe, or in ScaleRichView, the components choose the TRichView method only if the string length is much greater than an estimated count of character fitting to the specified width.

Otherewise, the components always choose the TRichView method.