Skip to main content

TdxScaleFactor.Assign(TdxScaleFactor) Method

Assigns new numerator and denominator values.

Declaration

procedure Assign(ASource: TdxScaleFactor); overload;

Parameters

Name Type
ASource TdxScaleFactor

Remarks

Call this procedure to assign the ANumerator and ADenominator parameter values to the read-only Numerator and Denominator properties. You can pass the loading state of the scaling factor’s registered listener object (such as a DPI-aware form) as the optional AIsLoading parameter. This parameter, if specified, is used to avoid scaling the listener form that is currently being loaded.

The second overloaded Assign procedure variant calls the first variant passing the numerator and denominator values from another scaling factor passed as the ASource parameter. The second overloaded variant procedure does not allow you to pass the loading state of the scaling factor’s listener object.

Unlike Assign, the Change procedure updates the scaling factor’s Numerator and Denominator properties by multiplying their values by the ANumerator and ADenominator parameters, respectively.

See Also