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
)
参数
- topLevelItems
类型:Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection
顶级父级的集合建模重新定位。
- moveDelta
类型:Microsoft.VisualStudio.Modeling.Diagrams.PointD
的距离移动形状的。
- ghostShapes
类型:Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection
重影的集合建模重新定位或 nullnull 引用(在 Visual Basic 中为 Nothing)。重影形状在其关系图的原始位置代表形态。如果此参数是 nullnull 引用(在 Visual Basic 中为 Nothing),重影形状创建。
- hitDiagramItem
类型:Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem
鼠标指向的形状。
备注
此方法通过重影形状的集合。 GetCompliantGroupBounds 计算顶级父形状的目标在关系图上。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。