Method CenterOnScreen
| Edit this page View SourceCenterOnScreen(nint, double?, double?)
Centers the window on the current monitor
Declaration
public static void CenterOnScreen(nint hwnd, double? width = null, double? height = null)
Parameters
Type | Name | Description |
---|---|---|
nint | hwnd | Window handle |
double? | width | Width of the window in device independent pixels, or |
double? | height | Height of the window in device independent pixels, or |