Compartir a través de


KeepGroupWithinParentRule.GetCompliantGroupBounds Method

Definition

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.

public:
 override void GetCompliantGroupBounds(Microsoft::VisualStudio::Modeling::Store ^ store, Microsoft::VisualStudio::Modeling::Diagrams::ShapeElement ^ targetShape, Microsoft::VisualStudio::Modeling::Diagrams::GhostShapeCollection ^ ghostShapes, Microsoft::VisualStudio::Modeling::Diagrams::PointD proposedLocationDelta);
public override void GetCompliantGroupBounds (Microsoft.VisualStudio.Modeling.Store store, Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement targetShape, Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection ghostShapes, Microsoft.VisualStudio.Modeling.Diagrams.PointD proposedLocationDelta);
override this.GetCompliantGroupBounds : Microsoft.VisualStudio.Modeling.Store * Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection * Microsoft.VisualStudio.Modeling.Diagrams.PointD -> unit
Public Overrides Sub GetCompliantGroupBounds (store As Store, targetShape As ShapeElement, ghostShapes As GhostShapeCollection, proposedLocationDelta As PointD)

Parameters

store
Store

The store containing the ShapeElements that the ghost shapes refer to.

targetShape
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
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
PointD

The proposed location delta in world units to apply to each shape in the group.

Applies to