AutomationElement.FromHandle(IntPtr) Methode

Definition

Ruft ein neues AutomationElement Objekt für das Benutzeroberflächenelement ab, auf das vom angegebenen Fensterziehpunkt verwiesen wird.

public:
 static System::Windows::Automation::AutomationElement ^ FromHandle(IntPtr hwnd);
public static System.Windows.Automation.AutomationElement FromHandle(IntPtr hwnd);
static member FromHandle : nativeint -> System.Windows.Automation.AutomationElement
Public Shared Function FromHandle (hwnd As IntPtr) As AutomationElement

Parameter

hwnd
IntPtr

nativeint

Das Handle des UI-Elements.

Gibt zurück

Ein AutomationElement für das ui-Element, das durch hwnd.

Gilt für:

Weitere Informationen