共用方式為


TreeViewAutomationPeer.GetChildrenCore 方法

定義

取得與這個 ContentElement 相關聯之 ContentElementAutomationPeer 的子項目集合。 由 GetChildren() 呼叫。

protected:
 override System::Collections::Generic::List<System::Windows::Automation::Peers::AutomationPeer ^> ^ GetChildrenCore();
protected override System.Collections.Generic.List<System.Windows.Automation.Peers.AutomationPeer> GetChildrenCore ();
override this.GetChildrenCore : unit -> System.Collections.Generic.List<System.Windows.Automation.Peers.AutomationPeer>
Protected Overrides Function GetChildrenCore () As List(Of AutomationPeer)

傳回

如果與這個 TreeViewAutomationPeer 相關聯的 TreeView 是空的,則為 TreeViewItemAutomationPeer 項目集合或 null

適用於

另請參閱