AutomationPeer.GetChildren 方法

定義

取得 GetChildren() 項目的集合,這些項目在使用者介面自動化樹狀目錄中是表示為自動化對等個體的直系子項目。Gets the collection of GetChildren() elements that are represented in the UI Automation tree as immediate child elements of the automation peer.

public:
 System::Collections::Generic::List<System::Windows::Automation::Peers::AutomationPeer ^> ^ GetChildren();
public System.Collections.Generic.List<System.Windows.Automation.Peers.AutomationPeer> GetChildren ();
member this.GetChildren : unit -> System.Collections.Generic.List<System.Windows.Automation.Peers.AutomationPeer>
Public Function GetChildren () As List(Of AutomationPeer)

傳回

List<AutomationPeer>

子元素的集合。The collection of child elements.

例外狀況

目前正在公開呼叫此方法。A public call to this method is currently in progress.

適用於