IView.Measure(Double, Double) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
更新檢視的大小。
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。