UIElementAutomationPeer.FromElement(UIElement) Metoda

Definicja

Pobiera wartość UIElementAutomationPeer dla określonego UIElementelementu .

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

Parametry

element
UIElement

Element UIElement skojarzony z tym UIElementAutomationPeerelementem .

Zwraca

AutomationPeer

Element UIElementAutomationPeer; lub null, jeśli UIElementAutomationPeer element nie został utworzony przez metodę CreatePeerForElement(UIElement) .

Dotyczy