次の方法で共有


VisualElement.MeasureOverride(Double, Double) メソッド

定義

古い Measure メソッドとの競合を回避するためにインターフェイスを明示的に実装する必要がある場合でも、サブクラスがオーバーライド Measure(Double, Double, MeasureFlags) できるようにする方法を提供します。

protected:
 virtual Microsoft::Maui::Graphics::Size MeasureOverride(double widthConstraint, double heightConstraint);
protected virtual Microsoft.Maui.Graphics.Size MeasureOverride (double widthConstraint, double heightConstraint);
abstract member MeasureOverride : double * double -> Microsoft.Maui.Graphics.Size
override this.MeasureOverride : double * double -> Microsoft.Maui.Graphics.Size
Protected Overridable Function MeasureOverride (widthConstraint As Double, heightConstraint As Double) As Size

パラメーター

widthConstraint
Double

要求する幅の制約。

heightConstraint
Double

要求する高さの制約。

戻り値

デバイスに表示するために要素が必要とする要求されたサイズ。

適用対象