AutomationPeer.GetChildren 方法

定義

取得 GetChildren() 項目的集合,這些項目在使用者介面自動化樹狀目錄中是表示為自動化對等個體的直系子項目。

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>

子元素的集合。

例外狀況

目前正在公開呼叫此方法。

適用於

另請參閱