Provides access to the window handle of a WPF window or a Form or a custom handle. More...
Public Member Functions | |
| Win32Window () | |
| Creates a new instance whose handle must be provided by the MainWindowHandleProvider More... | |
| Win32Window (Forms.Form form) | |
| Creates a new instance whose handle is obtained from a Form. More... | |
| Win32Window (Window window) | |
| Creates a new instance whose handle is obtained from a WPF window. More... | |
| Win32Window (IntPtr handle) | |
| Creates a new instance that wraps a handle . More... | |
Properties | |
| static Func< IntPtr > | MainWindowHandleProvider [get, set] |
| Gets or sets a function that provides the global window handle of the main window of an application. More... | |
| IntPtr | Handle [get] |
| Gets the handle that is wrapped by this class. More... | |
Provides access to the window handle of a WPF window or a Form or a custom handle.
Definition at line 32 of file Win32Window.cs.
|
inline |
Creates a new instance whose handle must be provided by the MainWindowHandleProvider
Definition at line 85 of file Win32Window.cs.
|
inline |
Creates a new instance whose handle is obtained from a Form.
Definition at line 93 of file Win32Window.cs.
|
inline |
Creates a new instance whose handle is obtained from a WPF window.
| window |
Definition at line 103 of file Win32Window.cs.
|
inline |
Creates a new instance that wraps a handle .
Definition at line 112 of file Win32Window.cs.
|
get |
Gets the handle that is wrapped by this class.
Definition at line 55 of file Win32Window.cs.
|
staticgetset |
Gets or sets a function that provides the global window handle of the main window of an application.
Window handles may change during the life time of an application. Excel for example will have one handle after startup, and a new main window handle when a workbook is opened.
Definition at line 45 of file Win32Window.cs.