ScaleHelperSystemScale Property

If the application is DPI aware, gets the scale factor of the primary display at the time of the application startup. Otherwise, it returns the default scale factor of 100% (1.0).

Definition

Namespace: KGySoft.WinForms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public static PointF SystemScale { get; }

Property Value

PointF

Remarks

  Note

Even if the application has per-monitor DPI awareness enabled, this property always returns the same value, which is the scale factor of the primary display at the time when the application has been started. To get the current scale factor of a control, use the GetScale(Control) method.

See Also