DpiAwareness.GetDpi(Control) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns
The Control's DPI.