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).
Namespace: KGySoft.WinFormsAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
public static PointF SystemScale { get; }
Public Shared ReadOnly Property SystemScale As PointF
Get
public:
static property PointF SystemScale {
PointF get ();
}
static member SystemScale : PointF with get
Property Value
PointF 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.