Control.MeasureOverride Method (Size)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Called to remeasure a control.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

Protected Overrides Function MeasureOverride (
	constraint As Size
) As Size

Parameters

constraint
Type: System.Windows.Size

The maximum size that the method can return.

Return Value

Type: System.Windows.Size

The size of the control, up to the maximum specified by constraint.

The default control measurement only measures the first visual child.

.NET Framework
Available since 3.0
Return to top
Show: