Condividi tramite


KeepInParentRule.GetMargin(ShapeElement) Method

Definition

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

protected:
 virtual double GetMargin(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ shape);
protected virtual double GetMargin (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement shape);
abstract member GetMargin : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> double
override this.GetMargin : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement -> double
Protected Overridable Function GetMargin (shape As ShapeElement) As Double

Parameters

shape
ShapeElement

The shape whose bounds is being checked for compliance.

Returns

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

Applies to