rvico TRichView Reference | TRVStyle

TRVStyle.GetAsPixels, GetAsTwips, GetAsDifferentUnits, GetAsRVUnits

Top  Previous  Next

The methods return Value converted to different units of measurement.

function GetAsPixels(Value: TRVStyleLength): Integer;

function GetAsTwips(Value: TRVStyleLength): Integer;

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

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

(introduced in version 13)

The methods return Value converted from Units to

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:

*ToUnits methods;

ConvertTo* methods.


TRichView © trichview.com