VisualElement.ArrangeOverride(Rect) 方法

定义

允许子类在控件布局传递期间实现自定义排列逻辑。

protected:
 virtual Microsoft::Maui::Graphics::Size ArrangeOverride(Microsoft::Maui::Graphics::Rect bounds);
protected virtual Microsoft.Maui.Graphics.Size ArrangeOverride (Microsoft.Maui.Graphics.Rect bounds);
abstract member ArrangeOverride : Microsoft.Maui.Graphics.Rect -> Microsoft.Maui.Graphics.Size
override this.ArrangeOverride : Microsoft.Maui.Graphics.Rect -> Microsoft.Maui.Graphics.Size
Protected Overridable Function ArrangeOverride (bounds As Rect) As Size

参数

bounds
Rect

元素的新边界。

返回

平台生成的此元素的帧大小。

注解

子类将平铺希望在基类上调用ArrangeOverride(Rect)或对基Handler类进行调用PlatformArrange(Rect)

适用于