共用方式為


ContentElementAutomationPeer.FromElement(ContentElement) 方法

定義

取得所指定之 ContentElementAutomationPeerContentElement

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

適用於