Method GetDpiForWindow
| Edit this page View SourceGetDpiForWindow(nint)
Returns the dots per inch (dpi) value for the associated window.
Declaration
public static uint GetDpiForWindow(nint hwnd)
Parameters
| Type | Name | Description | 
|---|---|---|
| nint | hwnd | 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.  |