Class NativeHelper.Display
Provides methods for display-related operations.
public static class NativeHelper.Display
- Inheritance
-
NativeHelper.Display
- Inherited Members
Methods
GetDPIAwareDisplayRect(WindowEx)
Gets the rectangle representing the display area, adjusted for DPI.
public static Rect GetDPIAwareDisplayRect(WindowEx win)
Parameters
win
WindowExThe window for which to get the DPI-aware display rectangle.
Returns
- Rect
The rectangle representing the DPI-aware display area.
GetDisplayRect(WindowEx)
Gets the rectangle representing the display area.
public static Rect GetDisplayRect(WindowEx win)
Parameters
win
WindowExThe window for which to get the display rectangle.
Returns
- Rect
The rectangle representing the display area.
Scale(WindowEx?)
Gets the scale factor of the display.
public static double Scale(WindowEx? win)
Parameters
win
WindowExThe window for which to get the scale factor.
Returns
- double
The scale factor of the display.