Diagram.RepositionShapes Method
Repositions the shapes in the diagram.
Namespace: Microsoft.VisualStudio.Modeling.Diagrams
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)
Syntax
'Declaration
Public Sub RepositionShapes ( _
topLevelItems As DiagramItemCollection, _
moveDelta As PointD, _
ghostShapes As GhostShapeCollection, _
hitDiagramItem As DiagramItem _
)
public void RepositionShapes(
DiagramItemCollection topLevelItems,
PointD moveDelta,
GhostShapeCollection ghostShapes,
DiagramItem hitDiagramItem
)
public:
void RepositionShapes(
DiagramItemCollection^ topLevelItems,
PointD moveDelta,
GhostShapeCollection^ ghostShapes,
DiagramItem^ hitDiagramItem
)
member RepositionShapes :
topLevelItems:DiagramItemCollection *
moveDelta:PointD *
ghostShapes:GhostShapeCollection *
hitDiagramItem:DiagramItem -> unit
public function RepositionShapes(
topLevelItems : DiagramItemCollection,
moveDelta : PointD,
ghostShapes : GhostShapeCollection,
hitDiagramItem : DiagramItem
)
Parameters
topLevelItems
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollectionThe collection of top-level parent shapes to reposition.
moveDelta
Type: Microsoft.VisualStudio.Modeling.Diagrams.PointDThe distance in which to move the shapes.
ghostShapes
Type: Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollectionThe collection of ghost shapes to reposition, or nulla null reference (Nothing in Visual Basic). Ghost shapes represent the shapes at their original locations in the diagram. If this parameter is nulla null reference (Nothing in Visual Basic), the ghost shapes are created.
hitDiagramItem
Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemThe shape to which the mouse is pointing.
Remarks
This method passes the collection of ghost shapes to GetCompliantGroupBounds to calculate the destination of the top-level parent shapes in the diagram.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.