共用方式為


VisualElement.IView.Measure(Double, Double) 方法

定義

匯報 檢視的大小。

 virtual Microsoft::Maui::Graphics::Size Microsoft.Maui.IView.Measure(double widthConstraint, double heightConstraint) = Microsoft::Maui::IView::Measure;
Microsoft.Maui.Graphics.Size IView.Measure (double widthConstraint, double heightConstraint);
abstract member Microsoft.Maui.IView.Measure : double * double -> Microsoft.Maui.Graphics.Size
override this.Microsoft.Maui.IView.Measure : double * double -> Microsoft.Maui.Graphics.Size
Function Measure (widthConstraint As Double, heightConstraint As Double) As Size Implements IView.Measure

參數

widthConstraint
Double

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

heightConstraint
Double

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

傳回

傳回這個專案所需的 Size。

實作

適用於