<< Click to display table of contents >> TCustomRichView.ConvertDocToPixels, ConvertDocToTwips, ConvertDocToEMU, ConvertDocToDifferentUnits |
The methods convert all lengths in the current document to different units of measurement.
procedure ConvertDocToPixels;
procedure ConvertDocToTwips;
procedure ConvertDocToEMU;
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:
▪pixels (1 pixel = 1/Style.UnitsPixelsPerInch of an inch)
▪twips,
▪EMU
▪NewUnits (pixels, twips, or EMU),
respectively.
The methods convert only properties of items, they do not convert properties of the Style itself.
To convert the document completely:
▪call one of these methods (for all documents linked to the same TRVStyle component);
▪call one of Style.ConvertTo* method to convert properties of Style to the same units of measurement.
See also: