Compartilhar via


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'Declaração
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

Return Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
The actual bounds that should be applied.

Examples

For an example, see BoundsRules.

.NET Framework Security

See Also

Reference

BoundsRules Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace