Condividi tramite


GroupBoundsRules.GetCompliantGroupBounds Method

Definition

Updates the GhostShapeCollection so that it complies with this GroupBoundsRules after the proposed location delta is applied.

public:
 abstract 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 abstract 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);
abstract member GetCompliantGroupBounds : Microsoft.VisualStudio.Modeling.Store * Microsoft.VisualStudio.Modeling.Diagrams.ShapeElement * Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection * Microsoft.VisualStudio.Modeling.Diagrams.PointD -> unit
Public MustOverride 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 parent shape if the source shapes are being reparented or duplicated. This parameter can be null, in which case the source shapes are being repositioned.

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