VisualTreeElementExtensions.GetVisualTreeDescendants 方法

定义

获取子代的整个层次结构,作为给定可视化树元素的子级列表。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IReadOnlyList<Microsoft::Maui::IVisualTreeElement ^> ^ GetVisualTreeDescendants(Microsoft::Maui::IVisualTreeElement ^ visualElement);
public static System.Collections.Generic.IReadOnlyList<Microsoft.Maui.IVisualTreeElement> GetVisualTreeDescendants (this Microsoft.Maui.IVisualTreeElement visualElement);
static member GetVisualTreeDescendants : Microsoft.Maui.IVisualTreeElement -> System.Collections.Generic.IReadOnlyList<Microsoft.Maui.IVisualTreeElement>
<Extension()>
Public Function GetVisualTreeDescendants (visualElement As IVisualTreeElement) As IReadOnlyList(Of IVisualTreeElement)

参数

visualElement
IVisualTreeElement

IVisualTreeElement 要扫描。

返回

子元素列表。

适用于