Show / Hide Table of Contents

Struct AnyWnd

Used for parameters of functions that need a window handle as wnd but also accept a WPF window/element, winforms form/control and IntPtr.

public struct AnyWnd
Remarks

Has implicit conversions from:

  • System.Windows.DependencyObject - WPF window or element.
  • System.Windows.Forms.Control - Form or control.
  • IntPtr or nint - window handle.

Namespace: Au.Types
Assembly: Au.dll

Properties

Name Description
Hwnd

Gets the window or control handle as wnd.

IsEmpty

true if this is default(AnyWnd).

Operators

Name Description
implicit operator AnyWnd(wnd)

Assignment of a value of type wnd.

implicit operator AnyWnd(nint)

Assignment of a window handle as IntPtr.

implicit operator AnyWnd(DependencyObject)

Assignment of a value of type System.Windows.DependencyObject (WPF window or control).

implicit operator AnyWnd(Control)

Assignment of a value of type System.Windows.Forms.Control (Form or any control class).