Udostępnij za pośrednictwem


DpiAwareness.GetDpiScale(Control) Method

Definition

Gets the DPI scale of the given Control.

public:
[System::Runtime::CompilerServices::Extension]
 static double GetDpiScale(System::Windows::Forms::Control ^ control);
public static double GetDpiScale (this System.Windows.Forms.Control control);
static member GetDpiScale : System.Windows.Forms.Control -> double
<Extension()>
Public Function GetDpiScale (control As Control) As Double

Parameters

control
Control

The Control from which to get the DPI scale.

Returns

The Control's DPI scale.

Applies to