次の方法で共有


DefaultBoundsRules.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:
 override Microsoft::VisualStudio::Modeling::Diagrams::RectangleD GetCompliantBounds(Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ shape, Microsoft::VisualStudio::Modeling::Diagrams::RectangleD proposedBounds);
public override Microsoft.VisualStudio.Modeling.Diagrams.RectangleD GetCompliantBounds (Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement shape, Microsoft.VisualStudio.Modeling.Diagrams.RectangleD proposedBounds);
override this.GetCompliantBounds : Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.RectangleD -> Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
Public Overrides 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