Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'Declaration
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
- proposedSize
Type: Microsoft.VisualStudio.Modeling.Diagrams.SizeD
The proposed size of the label shape.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.