Share via


UIElementAutomationPeer.FromElement(UIElement) 메서드

정의

지정된 UIElementAutomationPeer에 대한 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

매개 변수

element
UIElement

UIElementAutomationPeer와 연결된 UIElement입니다.

반환

AutomationPeer

UIElementAutomationPeer이거나, UIElementAutomationPeer 메서드에서 CreatePeerForElement(UIElement)를 만들지 않았으면 null입니다.

적용 대상