共用方式為


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

父元素可以配置子項目的高度。

傳回

傳回這個專案所需的 Size。

適用於