UIElementAutomationPeer.FromElement(UIElement) Método

Definição

Obtém o UIElementAutomationPeer para o UIElement especificado.

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

Parâmetros

element
UIElement

O UIElement associado a este UIElementAutomationPeer.

Retornos

AutomationPeer

O UIElementAutomationPeer; ou null, se o UIElementAutomationPeer não tiver sido criado pelo método CreatePeerForElement(UIElement).

Aplica-se a