UIElementAutomationPeer.FromElement(UIElement) Metodo

Definizione

Ottiene UIElementAutomationPeer per l'elemento UIElement specificato.

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

Parametri

element
UIElement

Oggetto UIElement associato all'oggetto UIElementAutomationPeer.

Restituisce

AutomationPeer

UIElementAutomationPeer oppure null se UIElementAutomationPeer non è stato creato dal metodo CreatePeerForElement(UIElement).

Si applica a