Condividi tramite


LabelShape.ConstrainLabelSize(SizeD) Method

Definition

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

protected:
 virtual Microsoft::VisualStudio::Modeling::Diagrams::SizeD ConstrainLabelSize(Microsoft::VisualStudio::Modeling::Diagrams::SizeD proposedSize);
protected virtual Microsoft.VisualStudio.Modeling.Diagrams.SizeD ConstrainLabelSize (Microsoft.VisualStudio.Modeling.Diagrams.SizeD proposedSize);
abstract member ConstrainLabelSize : Microsoft.VisualStudio.Modeling.Diagrams.SizeD -> Microsoft.VisualStudio.Modeling.Diagrams.SizeD
override this.ConstrainLabelSize : Microsoft.VisualStudio.Modeling.Diagrams.SizeD -> Microsoft.VisualStudio.Modeling.Diagrams.SizeD
Protected Overridable 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