LabelShape.ConstrainLabelSize(SizeD) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.