LabelShape.ConstrainLabelSize Method

Limits the maximum size of the label shape.

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

Syntax

'Declaração
Protected Overridable Function ConstrainLabelSize ( _
    proposedSize As SizeD _
) As SizeD
protected virtual SizeD ConstrainLabelSize(
    SizeD proposedSize
)
protected:
virtual SizeD ConstrainLabelSize(
    SizeD proposedSize
)
abstract ConstrainLabelSize : 
        proposedSize:SizeD -> SizeD 
override ConstrainLabelSize : 
        proposedSize:SizeD -> SizeD 
protected function ConstrainLabelSize(
    proposedSize : SizeD
) : SizeD

Parameters

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.

Remarks

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

.NET Framework Security

See Also

Reference

LabelShape Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace