Partager via


DpiAwareness.GetDpi(Control) Method

Definition

Gets the DPI of the given Control.

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

Parameters

control
Control

The Control from which to get the DPI.

Returns

The Control's DPI.

Applies to