Back to Devexpress

dxGetCurrentDPI(TComponent) Method

vcl-dxdpiawareutils-dot-dxgetcurrentdpi-x28-ecd3b7c7-x29.md

latest967 B
Original Source

dxGetCurrentDPI(TComponent) Method

Returns the DPI value at which the specified form or component is displayed.

Declaration

delphi
function dxGetCurrentDPI(AComponent: TComponent): Integer;

Parameters

NameType
AComponentTComponent

Returns

Type
Integer

Remarks

A form can be displayed across several monitors simultaneously. However, only the current monitor’s DPI value is used to calculate the scale factor applied to the form and its components. The current monitor displays the majority of the form. Call the dxGetCurrentDPI function to obtain the current monitor’s DPI value for the form or component passed as the AComponent parameter.

See Also

dxDPIAwareUtils Unit