DpiAwareness.GetDpiScale(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 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
Returns
The Control's DPI scale.