BoundsRules::GetCompliantBounds Method (ShapeElement^, RectangleD)
Visual Studio 2015
Adjust a proposed size and position so that they are compliant with this bounds rule. Called repeatedly while the user moves the mouse. The ghost shape shows the user the compliant bounds.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
public: virtual RectangleD GetCompliantBounds( ShapeElement^ shape, RectangleD proposedBounds ) abstract
Parameters
- shape
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::ShapeElement^
The shape to which the proposed bounds apply.
- proposedBounds
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::RectangleD
The proposed bounds in world units relative to the top-left of the shape's parent.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams::RectangleDThe actual bounds that should be applied.
For an example, see BoundsRules.
Show: