DpiAwareness.GetMonitorDpi(IntPtr, Double, Double) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ruft den dpi-Typ des angegebenen Monitors ab.
public:
[System::Runtime::CompilerServices::Extension]
static void GetMonitorDpi(IntPtr hmonitor, [Runtime::InteropServices::Out] double % dpiX, [Runtime::InteropServices::Out] double % dpiY);
public static void GetMonitorDpi (this IntPtr hmonitor, out double dpiX, out double dpiY);
static member GetMonitorDpi : nativeint * double * double -> unit
<Extension()>
Public Sub GetMonitorDpi (hmonitor As IntPtr, ByRef dpiX As Double, ByRef dpiY As Double)
Parameter
- dpiX
- Double
Der x-Koordinate (oder horizontale) dpi des Monitors.
- dpiY
- Double
Der y-Koordinate (oder vertikale) dpi des Monitors.