rvico TRichView Reference | TRVStyle

TRVStyle.PixelsToUnits, TwipsToUnits, DifferentUnitsToUnits, RVUnitsToUnits

Top  Previous  Next

The methods return Value converted from different units of measurement.

function PixelsToUnits(Value: Integer): TRVStyleLength;

function TwipsToUnits(Value: Integer): TRVStyleLength;

function DifferentUnitsToUnits(Value: TRVStyleLength; Units: TRVStyleUnits): TRVStyleLength;

function RVUnitsToUnits(Value: TRVLength; RVUnits: TRVUnits): TRVStyleLength;

(introduced in version 13)

The methods return Value converted to Units from

screen pixels,

twips,

another Units (twips or pixels),

RVUnits (inches, mm, points, etc.)

respectively.

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

See also:

GetAs* methods;

ConvertTo* methods.


TRichView © trichview.com