Compartir a través de


VisualTreeElementExtensions.GetVisualTreeElements Method

Definition

Overloads

GetVisualTreeElements(IVisualTreeElement, Point)

Gets list of a Visual Tree Element's children based off of a given Point.

GetVisualTreeElements(IVisualTreeElement, Rect)

Gets list of a Visual Tree Elements children based off of a rectangle.

GetVisualTreeElements(IVisualTreeElement, Double, Double)

Gets list of a Visual Tree Elements children based off of a given x, y point.

GetVisualTreeElements(IVisualTreeElement, Double, Double, Double, Double)

Gets list of a Visual Tree Elements children based off of a rectangle defined by its coordinates which are specified in platform units, not pixels.

GetVisualTreeElements(IVisualTreeElement, Point)

Gets list of a Visual Tree Element's children based off of a given Point.

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

Parameters

visualElement
IVisualTreeElement

IVisualTreeElement to scan.

point
Point

Point.

Returns

List of Children Elements.

Applies to

GetVisualTreeElements(IVisualTreeElement, Rect)

Gets list of a Visual Tree Elements children based off of a rectangle.

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

Parameters

visualElement
IVisualTreeElement

IVisualTreeElement to scan.

rectangle
Rect

The rectangle.

Returns

List of Children Elements.

Applies to

GetVisualTreeElements(IVisualTreeElement, Double, Double)

Gets list of a Visual Tree Elements children based off of a given x, y point.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IReadOnlyList<Microsoft::Maui::IVisualTreeElement ^> ^ GetVisualTreeElements(Microsoft::Maui::IVisualTreeElement ^ visualElement, double x, double y);
public static System.Collections.Generic.IReadOnlyList<Microsoft.Maui.IVisualTreeElement> GetVisualTreeElements (this Microsoft.Maui.IVisualTreeElement visualElement, double x, double y);
static member GetVisualTreeElements : Microsoft.Maui.IVisualTreeElement * double * double -> System.Collections.Generic.IReadOnlyList<Microsoft.Maui.IVisualTreeElement>
<Extension()>
Public Function GetVisualTreeElements (visualElement As IVisualTreeElement, x As Double, y As Double) As IReadOnlyList(Of IVisualTreeElement)

Parameters

visualElement
IVisualTreeElement

IVisualTreeElement to scan.

x
Double

The X point.

y
Double

The Y point.

Returns

List of Children Elements.

Applies to

GetVisualTreeElements(IVisualTreeElement, Double, Double, Double, Double)

Gets list of a Visual Tree Elements children based off of a rectangle defined by its coordinates which are specified in platform units, not pixels.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IReadOnlyList<Microsoft::Maui::IVisualTreeElement ^> ^ GetVisualTreeElements(Microsoft::Maui::IVisualTreeElement ^ visualElement, double x1, double y1, double x2, double y2);
public static System.Collections.Generic.IReadOnlyList<Microsoft.Maui.IVisualTreeElement> GetVisualTreeElements (this Microsoft.Maui.IVisualTreeElement visualElement, double x1, double y1, double x2, double y2);
static member GetVisualTreeElements : Microsoft.Maui.IVisualTreeElement * double * double * double * double -> System.Collections.Generic.IReadOnlyList<Microsoft.Maui.IVisualTreeElement>
<Extension()>
Public Function GetVisualTreeElements (visualElement As IVisualTreeElement, x1 As Double, y1 As Double, x2 As Double, y2 As Double) As IReadOnlyList(Of IVisualTreeElement)

Parameters

visualElement
IVisualTreeElement

IVisualTreeElement to scan.

x1
Double

The X coordinate of the top left point.

y1
Double

The Y coordinate of the top left point.

x2
Double

The X coordinate of the bottom right point.

y2
Double

The Y coordinate of the bottom right point.

Returns

List of Children Elements.

Applies to