Diagram::RepositionShapes Method (DiagramItemCollection^, PointD, GhostShapeCollection^, DiagramItem^)
Visual Studio 2015
Repositions the shapes in the diagram.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
public: void RepositionShapes( DiagramItemCollection^ topLevelItems, PointD moveDelta, GhostShapeCollection^ ghostShapes, DiagramItem^ hitDiagramItem )
Parameters
- topLevelItems
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::DiagramItemCollection^
The collection of top-level parent shapes to reposition.
- moveDelta
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::PointD
The distance in which to move the shapes.
- ghostShapes
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::GhostShapeCollection^
The collection of ghost shapes to reposition, or null. Ghost shapes represent the shapes at their original locations in the diagram. If this parameter is null, the ghost shapes are created.
- hitDiagramItem
-
Type:
Microsoft.VisualStudio.Modeling.Diagrams::DiagramItem^
The shape to which the mouse is pointing.
This method passes the collection of ghost shapes to GetCompliantGroupBounds to calculate the destination of the top-level parent shapes in the diagram.
Show: