次の方法で共有


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)

Syntax

'宣言
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

  • ghostShapes
    Type: Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection
    The 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.

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

See Also

Reference

Diagram Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace