Diagram.RepositionShapes 方法

重新定位关系图上的形状。

命名空间:  Microsoft.VisualStudio.Modeling.Diagrams
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)

语法

声明
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
)

参数

  • ghostShapes
    类型:Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection
    重影的集合建模重新定位或 nullnull 引用(在 Visual Basic 中为 Nothing)。重影形状在其关系图的原始位置代表形态。如果此参数是 nullnull 引用(在 Visual Basic 中为 Nothing),重影形状创建。

备注

此方法通过重影形状的集合。 GetCompliantGroupBounds 计算顶级父形状的目标在关系图上。

.NET Framework 安全性

请参见

参考

Diagram 类

Microsoft.VisualStudio.Modeling.Diagrams 命名空间