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。

实现

适用于