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.

适用于