Utility.GetScalingLevel Method

Gets the display scale factor.
Public Shared Function GetScalingLevel() As SizeF
This language is not supported or no code example is available.
public static SizeF GetScalingLevel()
This language is not supported or no code example is available.

Return Value

SizeF
Remarks
 

The result value is returned in a coordinate system in which 96 corresponds to 1 that means 100%.

WPF only: if you've enabled per-monitor DPI in the app.manifest, use Environment.GetScalingLevel() method instead.

.NET Framework

Supported in: 4.8

In this article

Definition