KeepGroupWithinParentRule.GetCompliantGroupBounds Method
Updates the GhostShapeCollection so that it complies with this GroupBoundsRules after the proposed location delta is applied. This GroupBoundsRule will constrain the overall bounds of a group of child shapes so that it remains below and to the right of the top and left boundaries of the current parent shape. The right and bottom side of the parent shape will not constrain the child shapes.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Dichiarazione
Public Overrides Sub GetCompliantGroupBounds ( _
store As Store, _
targetShape As ShapeElement, _
ghostShapes As GhostShapeCollection, _
proposedLocationDelta As PointD _
)
public override void GetCompliantGroupBounds(
Store store,
ShapeElement targetShape,
GhostShapeCollection ghostShapes,
PointD proposedLocationDelta
)
public:
virtual void GetCompliantGroupBounds(
Store^ store,
ShapeElement^ targetShape,
GhostShapeCollection^ ghostShapes,
PointD proposedLocationDelta
) override
abstract GetCompliantGroupBounds :
store:Store *
targetShape:ShapeElement *
ghostShapes:GhostShapeCollection *
proposedLocationDelta:PointD -> unit
override GetCompliantGroupBounds :
store:Store *
targetShape:ShapeElement *
ghostShapes:GhostShapeCollection *
proposedLocationDelta:PointD -> unit
public override function GetCompliantGroupBounds(
store : Store,
targetShape : ShapeElement,
ghostShapes : GhostShapeCollection,
proposedLocationDelta : PointD
)
Parameters
- store
Type: Microsoft.VisualStudio.Modeling.Store
The store containing the ShapeElements that the ghost shapes refer to.
- targetShape
Type: Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement
(The target shape is ignored for this rule since this rule intends to constrain the group to its current parent shape's top and left boundaries.)
- ghostShapes
Type: Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection
A collection of ghost shapes which describe ShapeElements prior to the proposed location delta. This method should modify the ghost shape properties such that the properties are compliant with this rule after the proposed location delta is applied.
- proposedLocationDelta
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointD
The proposed location delta in world units to apply to each shape in the group.
.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.