Share via


LineLabelShape.ConstrainLabelSize Method

Called to constrain the automatically calculated size of the label. The default implementation has no constraint.

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

Syntax

'Declaration
Protected Overrides Function ConstrainLabelSize ( _
    proposedSize As SizeD _
) As SizeD
protected override SizeD ConstrainLabelSize(
    SizeD proposedSize
)
protected:
virtual SizeD ConstrainLabelSize(
    SizeD proposedSize
) override
abstract ConstrainLabelSize : 
        proposedSize:SizeD -> SizeD  
override ConstrainLabelSize : 
        proposedSize:SizeD -> SizeD
protected override function ConstrainLabelSize(
    proposedSize : SizeD
) : SizeD

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.SizeD

.NET Framework Security

See Also

Reference

LineLabelShape Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace