Share via


UIElementAutomationPeer.FromElement(UIElement) Méthode

Définition

Obtient la UIElementAutomationPeer du UIElement spécifié.

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

Paramètres

element
UIElement

UIElement associé à ce UIElementAutomationPeer.

Retours

AutomationPeer

UIElementAutomationPeer, ou null, si UIElementAutomationPeer n'a pas été créé par la méthode CreatePeerForElement(UIElement).

S’applique à