Share via


DesignerView.MeasureOverride Method

This member overrides Decorator.MeasureOverride(Size), and more complete documentation might be available in that topic.

Override MeasureOverride to measure the layers.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Protected Overrides Function MeasureOverride ( _
    constraint As Size _
) As Size
protected override Size MeasureOverride(
    Size constraint
)
protected:
virtual Size MeasureOverride(
    Size constraint
) override
abstract MeasureOverride : 
        constraint:Size -> Size 
override MeasureOverride : 
        constraint:Size -> Size 
protected override function MeasureOverride(
    constraint : Size
) : Size

Parameters

Return Value

Type: System.Windows.Size
A Size object that represents the size of the element.

.NET Framework Security

See Also

Reference

DesignerView Class

Microsoft.Windows.Design.Interaction Namespace

AdornerPanel

Other Resources

Walkthrough: Creating a Design-time Adorner

Adorner Architecture