Back to Devexpress

dxGetScaleFactor(TObject) Method

vcl-dxdpiawareutils-dot-dxgetscalefactor-x28-80e1fd17-x29.md

latest1.0 KB
Original Source

dxGetScaleFactor(TObject) Method

Returns the specified component’s scale factor.

Declaration

delphi
function dxGetScaleFactor(AOwner: TObject): TdxScaleFactor;

Parameters

NameType
AOwnerTObject

Returns

Type
TdxScaleFactor

Remarks

Call this function to obtain the scale factor of a component passed as the AOwner parameter. The dxGetScaleFactor function returns the dxSystemScaleFactor function result if the specified component does not implement the IdxScaleFactor interface.

See Also

dxDPIAwareUtils.dxGetScaleFactorForCanvas

dxDPIAwareUtils.dxGetScaleFactorForInterface

dxDPIAwareUtils Unit