This topic has not yet been rated - Rate this topic

Diagram.RepositionShapes Method

Repositions the shapes in the diagram.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.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.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ