Share via


KeepInParentRule.GetMargin Method

Gets the minimum margin in world units between the shape and the diagram boundary.

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 GetMargin ( _
    shape As ShapeElement _
) As Double
protected virtual double GetMargin(
    ShapeElement shape
)
protected:
virtual double GetMargin(
    ShapeElement^ shape
)
abstract GetMargin : 
        shape:ShapeElement -> float 
override GetMargin : 
        shape:ShapeElement -> float 
protected function GetMargin(
    shape : ShapeElement
) : double

Parameters

Return Value

Type: System.Double

.NET Framework Security

See Also

Reference

KeepInParentRule Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace