共用方式為


Shape.MeasureOverride(Size) 方法

定義

在排列之前,於第一個配置階段期間測量 Shape

protected:
 override System::Windows::Size MeasureOverride(System::Windows::Size constraint);
protected override System.Windows.Size MeasureOverride (System.Windows.Size constraint);
override this.MeasureOverride : System.Windows.Size -> System.Windows.Size
Protected Overrides Function MeasureOverride (constraint As Size) As Size

參數

constraint
Size

不得超出的最大 Size

傳回

Size

Size 的最大 Shape

適用於

另請參閱