IView.Measure(Double, Double) 方法

定义

汇报视图的大小。

public:
 Microsoft::Maui::Graphics::Size Measure(double widthConstraint, double heightConstraint);
public Microsoft.Maui.Graphics.Size Measure (double widthConstraint, double heightConstraint);
abstract member Measure : double * double -> Microsoft.Maui.Graphics.Size
Public Function Measure (widthConstraint As Double, heightConstraint As Double) As Size

参数

widthConstraint
Double

父元素可以分配子元素的宽度。

heightConstraint
Double

父元素可以分配子元素的高度。

返回

返回此元素的所需大小。

适用于