Sdílet prostřednictvím


UIElementAutomationPeer.FromElement(UIElement) Metoda

Definice

UIElementAutomationPeer Získá pro zadané UIElement.

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

To UIElement je přidruženo k tomuto UIElementAutomationPeer.

Návraty

AutomationPeer

Pokud UIElementAutomationPeermetoda nevytvořila UIElementAutomationPeer ; nebo null, pokud nebyla vytvořena metodouCreatePeerForElement(UIElement).

Platí pro