Control.MeasureOverride(Size) 方法
定義
呼叫以重新測量控制項。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
方法可以傳回的最大大小。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.