TRVStyle.ConvertToPixels, ConvertToTwips, ConvertToDifferentUnits

<< Click to display table of contents >>

TRVStyle.ConvertToPixels, ConvertToTwips, ConvertToDifferentUnits

The methods convert all properties of this TRVStyle component to new units of measurement.

procedure ConvertToPixels;

procedure ConvertToTwips;

procedure ConvertToDifferentUnits(NewUnits: TRVStyleUnits);

(introduced in version 13)

The methods convert all properties of this TRVStyle (including all sub-properties) from Units to:

screen pixels,

twips,

NewUnits (twips or pixels),

respectively.

After the conversion, a new value is assigned to Units property.

If there is a document in TRichView control linked to this TRVStyle component, this document must be converted before calling this method.

When converting to/from pixels, RichViewPixelsPerInch is taken into account.