LabelShape::ConstrainLabelSize Method (SizeD)

 

Limits the maximum size of the label shape.

Namespace:   Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

protected:
virtual SizeD ConstrainLabelSize(
	SizeD proposedSize
)

Parameters

proposedSize
Type: Microsoft.VisualStudio.Modeling.Diagrams::SizeD

The proposed size of the label shape.

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams::SizeD

The label shape size. If the proposed size is larger than the maximum size, the maximum size is returned.

By default, a maximum limit is not used to verify the size of label shapes.

Return to top
Show: