แก้ไข

แชร์ผ่าน


IViewAutomationPeer.GetChildren(List<AutomationPeer>) Method

Definition

Gets the collection of immediate child elements of the specified UI Automation peer.

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

Parameters

children
List<AutomationPeer>

The automation peers for the list items.

Returns

The automation peers for all items in the control. If the view contains interactive or informational elements in addition to the list items, automation peers for these elements must be added to the list.

Applies to

See also