BoundsRules.GetCompliantBounds Method
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.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Syntax
'Declaration
Public MustOverride Function GetCompliantBounds ( _
shape As ShapeElement, _
proposedBounds As RectangleD _
) As RectangleD
public abstract RectangleD GetCompliantBounds(
ShapeElement shape,
RectangleD proposedBounds
)
public:
virtual RectangleD GetCompliantBounds(
ShapeElement^ shape,
RectangleD proposedBounds
) abstract
abstract GetCompliantBounds :
shape:ShapeElement *
proposedBounds:RectangleD -> RectangleD
public abstract function GetCompliantBounds(
shape : ShapeElement,
proposedBounds : RectangleD
) : RectangleD
Parameters
shape
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElementThe shape to which the proposed bounds apply.
proposedBounds
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleDThe proposed bounds in world units relative to the top-left of the shape's parent.
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
The actual bounds that should be applied.
Examples
For an example, see BoundsRules.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.