Method GetWindowHandle
| Edit this page View SourceGetWindowHandle(Window)
Gets the native HWND pointer handle for the window
Declaration
public static nint GetWindowHandle(this Window window)
Parameters
Type | Name | Description |
---|---|---|
Window | window | The window to return the handle for |
Returns
Type | Description |
---|---|
nint | HWND handle |
GetWindowHandle(WindowId)
Gets the window HWND handle from a Window ID.
Declaration
public static nint GetWindowHandle(this WindowId windowId)
Parameters
Type | Name | Description |
---|---|---|
WindowId | windowId | Window ID to get handle from |
Returns
Type | Description |
---|---|
nint | Window HWND handle |