rvico TRichView Reference | TRichView | TRVDocParameters

TRVDocParameters.UnitsPerInch

Top  Previous  Next

Returns the number of Units in one inch.

function UnitsPerInch(Units: TRVUnits): TRVLength;

This method can be used to convert between measurement units.

For example, this code converts from points to millimeters:

ValueMM := ValuePoints * UnitsPerInch(rvuMillimeters) / UnitsPerInch(rvuPoints);

 

See the note about rvuPixels in the topic about Units.


TRichView © trichview.com