Udostępnij za pośrednictwem


LineLabelShape.ConstrainLabelSize(SizeD) Method

Definition

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

protected:
 override Microsoft::VisualStudio::Modeling::Diagrams::SizeD ConstrainLabelSize(Microsoft::VisualStudio::Modeling::Diagrams::SizeD proposedSize);
protected override Microsoft.VisualStudio.Modeling.Diagrams.SizeD ConstrainLabelSize (Microsoft.VisualStudio.Modeling.Diagrams.SizeD proposedSize);
override this.ConstrainLabelSize : Microsoft.VisualStudio.Modeling.Diagrams.SizeD -> Microsoft.VisualStudio.Modeling.Diagrams.SizeD
Protected Overrides Function ConstrainLabelSize (proposedSize As SizeD) As SizeD

Parameters

proposedSize
SizeD

Size we wish to make the label.

Returns

SizeD with the constrained size.

Applies to