rvico TRichView Reference | TRichView

TCustomRichView.ConvertDocToPixels, ConvertDocToTwips, ConvertDocToDifferentUnits

Top  Previous  Next

The methods convert all lengths in the current document to different units of measurement.

procedure ConvertDocToPixels;

procedure ConvertDocToTwips;

procedure ConvertDocToDifferentUnits(NewUnits: TRVStyleUnits);

(introduced in version 13)

The methods convert all lengths in the current document from Style.Units to different units of measurement:

screen pixels,

twips,

NewUnits (twips or pixels),

respectively.

The methods convert only properties of items, they do not convert properties of the Style itself.

To convert the document completely, you need to:

call one of these methods (for all documents linked to the same TRVStyle components);

call one of Style.ConvertTo* method to convert properties of Style to the same units of measurement.


TRichView © trichview.com