Method GetDpiForWindow
| Edit this page View SourceGetDpiForWindow(Window)
Returns the dots per inch (dpi) value for the associated window.
Declaration
public static uint GetDpiForWindow(this Window window)
Parameters
Type | Name | Description |
---|---|---|
Window | window | The window you want to get information about. |
Returns
Type | Description |
---|---|
uint | The DPI for the window which depends on the DPI_AWARENESS of the window. See the Remarks for more information. An invalid hwnd value will result in a return value of 0. |