ContentElementAutomationPeer.FromElement(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

参数

返回

AutomationPeer

指定 ContentElementContentElementAutomationPeer,如果未使用 CreatePeerForElement(ContentElement) 方法创建 ContentElementAutomationPeer,则为 null

适用于