다음을 통해 공유


Diagram.GetCompliantGroupBounds Method

Definition

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

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

Parameters

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.

Remarks

If this shape has a null GroupBoundsRules, then the shape's diagram's GroupBoundsRules will be used instead.

Applies to