UIElementAutomationPeer.FromElement(UIElement) Methode

Definition

Ruft UIElementAutomationPeer für den angegebenen UIElement ab.

public:
 static System::Windows::Automation::Peers::AutomationPeer ^ FromElement(System::Windows::UIElement ^ element);
public static System.Windows.Automation.Peers.AutomationPeer FromElement (System.Windows.UIElement element);
static member FromElement : System.Windows.UIElement -> System.Windows.Automation.Peers.AutomationPeer
Public Shared Function FromElement (element As UIElement) As AutomationPeer

Parameter

element
UIElement

Die UIElement, die diesem UIElementAutomationPeer zugeordnet ist.

Gibt zurück

AutomationPeer

Der UIElementAutomationPeer oder null, wenn der UIElementAutomationPeer von der CreatePeerForElement(UIElement)-Methode nicht erstellt wurde.

Gilt für