Diagram.RepositionShapes 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
按指定的 moveDelta 移动指定的 DiagramItems。 这些 DiagramItems 应为顶级 DiagramItems,否则,移动可能不会按预期执行。 此方法调用 GetCompliantGroupBounds 来确定每个 DiagramItem 的目标。
public:
void RepositionShapes(Microsoft::VisualStudio::Modeling::Diagrams::DiagramItemCollection ^ topLevelItems, Microsoft::VisualStudio::Modeling::Diagrams::PointD moveDelta, Microsoft::VisualStudio::Modeling::Diagrams::GhostShapeCollection ^ ghostShapes, Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ hitDiagramItem);
public void RepositionShapes (Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection topLevelItems, Microsoft.VisualStudio.Modeling.Diagrams.PointD moveDelta, Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection ghostShapes, Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem hitDiagramItem);
member this.RepositionShapes : Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection * Microsoft.VisualStudio.Modeling.Diagrams.PointD * Microsoft.VisualStudio.Modeling.Diagrams.GhostShapeCollection * Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem -> unit
Public Sub RepositionShapes (topLevelItems As DiagramItemCollection, moveDelta As PointD, ghostShapes As GhostShapeCollection, hitDiagramItem As DiagramItem)
参数
- topLevelItems
- DiagramItemCollection
要移动的顶级 DiagramItems。
- moveDelta
- PointD
DiagramItems 的移动量(单位为世界单位)。
- ghostShapes
- GhostShapeCollection
要移动的 GhostShapes 的集合。 这会传递到 GetCompliantGroupBounds 以计算目标。 GhostShapes 表示其原始位置的 DiagramItems。 此参数可以为 null,在这种情况下,将为调用 GetCompliantGroupBounds 创建 GhostShapes 的集合。
- hitDiagramItem
- DiagramItem
DiagramItem 鼠标当前悬停。