VisualElement.Bounds 属性

定义

获取元素的边界(以与设备无关的单位为单位)。

public:
 property Microsoft::Maui::Graphics::Rect Bounds { Microsoft::Maui::Graphics::Rect get(); };
public Microsoft.Maui.Graphics.Rect Bounds { get; }
member this.Bounds : Microsoft.Maui.Graphics.Rect
Public ReadOnly Property Bounds As Rect

属性值

元素的边界,以与设备无关的单位表示。

注解

Bounds 在布局期间分配 。

适用于

另请参阅