ContentElementAutomationPeer.FromElement(ContentElement) 메서드

정의

지정된 ContentElementAutomationPeer에 대한 ContentElement를 가져옵니다Gets the ContentElementAutomationPeer for the specified ContentElement.

public:
 static System::Windows::Automation::Peers::AutomationPeer ^ FromElement(System::Windows::ContentElement ^ element);
public static System.Windows.Automation.Peers.AutomationPeer FromElement (System.Windows.ContentElement element);
static member FromElement : System.Windows.ContentElement -> System.Windows.Automation.Peers.AutomationPeer
Public Shared Function FromElement (element As ContentElement) As AutomationPeer

매개 변수

element
ContentElement

ContentElementAutomationPeer와 연결된 ContentElement입니다.The ContentElement that is associated with this ContentElementAutomationPeer.

반환

AutomationPeer

지정된 ContentElement에 대한 ContentElementAutomationPeer이거나, ContentElementAutomationPeerCreatePeerForElement(ContentElement) 메서드에 의해 만들어지지 않은 경우 null입니다.The ContentElementAutomationPeer for the specified ContentElement, or null if the ContentElementAutomationPeer has not been created by the CreatePeerForElement(ContentElement) method.

적용 대상