This member overrides BoundsRules.GetCompliantBounds(ShapeElement, RectangleD).
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)
Syntax
'宣言
Public Overrides Function GetCompliantBounds ( _
shape As ShapeElement, _
proposedBounds As RectangleD _
) As RectangleD
'使用
Dim instance As SnapToPerimeterFollowingRotationRule
Dim shape As ShapeElement
Dim proposedBounds As RectangleD
Dim returnValue As RectangleD
returnValue = instance.GetCompliantBounds(shape, _
proposedBounds)
public override RectangleD GetCompliantBounds(
ShapeElement shape,
RectangleD proposedBounds
)
public:
virtual RectangleD GetCompliantBounds(
ShapeElement^ shape,
RectangleD proposedBounds
) override
public override function GetCompliantBounds(
shape : ShapeElement,
proposedBounds : RectangleD
) : RectangleD
Parameters
- proposedBounds
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
Return Value
Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
Permissions
- 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.
See Also
Reference
SnapToPerimeterFollowingRotationRule Class