Share via


ICrossPlatformLayout.CrossPlatformMeasure(Double, Double) 方法

定义

测量给定约束内 ICrossPlatformLayout 的所需大小。

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

参数

widthConstraint
Double

用于测量 ICrossPlatformLayout 的宽度限制。

heightConstraint
Double

用于测量 ICrossPlatformLayout 的高度限制。

返回

ILayout 的所需大小。

适用于