Provides access to the window handle of a WPF window or a Form or a custom handle.
More...
|
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.
◆ Win32Window() [1/4]
Bovender.Win32Window.Win32Window |
( |
| ) |
|
|
inline |
◆ Win32Window() [2/4]
Bovender.Win32Window.Win32Window |
( |
Forms.Form |
form | ) |
|
|
inline |
Creates a new instance whose handle is obtained from a Form.
◆ Win32Window() [3/4]
Bovender.Win32Window.Win32Window |
( |
Window |
window | ) |
|
|
inline |
Creates a new instance whose handle is obtained from a WPF window.
- Parameters
-
◆ Win32Window() [4/4]
Bovender.Win32Window.Win32Window |
( |
IntPtr |
handle | ) |
|
|
inline |
Creates a new instance that wraps a handle .
◆ Handle
IntPtr Bovender.Win32Window.Handle |
|
get |
Gets the handle that is wrapped by this class.
◆ MainWindowHandleProvider
Func<IntPtr> Bovender.Win32Window.MainWindowHandleProvider |
|
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.
The documentation for this class was generated from the following file: