Share via


ImageField.GetMinimumSize Method

Returns the minimum size of the ImageField.

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

Syntax

'Declaration
Public Overrides Function GetMinimumSize ( _
    parentShape As ShapeElement _
) As SizeD
public override SizeD GetMinimumSize(
    ShapeElement parentShape
)
public:
virtual SizeD GetMinimumSize(
    ShapeElement^ parentShape
) override
abstract GetMinimumSize : 
        parentShape:ShapeElement -> SizeD  
override GetMinimumSize : 
        parentShape:ShapeElement -> SizeD
public override function GetMinimumSize(
    parentShape : ShapeElement
) : SizeD

Parameters

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.SizeD

Remarks

The minimum size is the size of the image to be displayed, or the minimum size specified in the AnchoringBehavior, whichever is larger. If the shape field is scaled, (GetUnscaled() returns false) then the AnchoringBehavior size is always used.

.NET Framework Security

See Also

Reference

ImageField Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace