BoundsRules.GetCompliantBounds(ShapeElement, RectangleD) Method

Definition

Returns the compliant bounds in world units relative to the top-left of the parent using this bounds rule.

public:
 abstract Microsoft::VisualStudio::Modeling::Diagrams::RectangleD GetCompliantBounds(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ shape, Microsoft::VisualStudio::Modeling::Diagrams::RectangleD proposedBounds);
public abstract Microsoft.VisualStudio.Modeling.Diagrams.RectangleD GetCompliantBounds (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement shape, Microsoft.VisualStudio.Modeling.Diagrams.RectangleD proposedBounds);
abstract member GetCompliantBounds : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.RectangleD -> Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
Public MustOverride Function GetCompliantBounds (shape As ShapeElement, proposedBounds As RectangleD) As RectangleD

Parameters

shape
ShapeElement

The shape whose proposed bounds are to be checked for compliance with this bounds rule.

proposedBounds
RectangleD

The proposed bounds in world units relative to the top-left of the shape's parent.

Returns

The compliant bounds in world units relative to the top-left of the parent using this bounds rule.

Applies to