AutomationPeer.GetChildren 方法

定义

获取在 UI 自动化树中表示为自动化对等方的直接子元素的 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.

适用于