Control.MeasureOverride(Size) Control.MeasureOverride(Size) Control.MeasureOverride(Size) Control.MeasureOverride(Size) Method

定義

呼叫以重新測量控制項。Called to remeasure a control.

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

方法可以傳回的最大大小。The maximum size that the method can return.

傳回

控制項的大小,最多達到 constraint 指定的上限。The size of the control, up to the maximum specified by constraint.

備註

預設控制項度量只會測量的第一個視覺子系。The default control measurement only measures the first visual child.

適用於