rvico TRichView Reference | TRichView | TRVDocParameters

TRVDocParameters.Units

Top  Previous  Next

Measurement units for all sizes in TRVDocParameters.

type

  TRVUnits = (rvuInches, rvuCentimeters, rvuMillimeters, rvuPicas, rvuPixels, rvuPoints);

property Units: TRVUnits;

Note: TRVUnits is defined in RVStyle unit.

Value

Meaning

rvuInches

Inches. 1 inch = 2.54 cm.

rvuCentimeters

Centimeters.

rvuMillimeters

Millimeters.

rvuPicas

Picas (used in typography). 1 pica = 1/6 inch = 12 points.

rvuPixels

Screen pixels (see below).

rvuPoints

Points (used in typography). 1 point = 1/72 inch.

If RichViewPixelsPerInch is positive, it is used for calculation of number of screen pixels in one inch. Otherwise, Screen.PixelsPerInch is used. In the latter case, values in rvuPixels depend on the screen resolution and cannot be used in WYSIWYG editors.

Assignment to this property does not change other properties. Use ConvertToUnits to convert all sizes to new units.

Use UnitsPerInch to convert values between units.


RichView © Sergey Tkachenko