次の方法で共有


IViewHandler.GetDesiredSize(Double, Double) メソッド

定義

目的のサイズと制約に基づいて、ビューの実際のサイズを計算します。

public:
 Microsoft::Maui::Graphics::Size GetDesiredSize(double widthConstraint, double heightConstraint);
public Microsoft.Maui.Graphics.Size GetDesiredSize (double widthConstraint, double heightConstraint);
abstract member GetDesiredSize : double * double -> Microsoft.Maui.Graphics.Size
Public Function GetDesiredSize (widthConstraint As Double, heightConstraint As Double) As Size

パラメーター

widthConstraint
Double

ビューの幅に対する制約。

heightConstraint
Double

ビューの高さに対する制約。

戻り値

このハンドラーに関連付けられているビューの計算されたサイズ。

適用対象