ShapeElement.MoveByRepositioning Method

Definition

Overloads

MoveByRepositioning(ElementGroupPrototype, DiagramItemCollection, PointD, DiagramItem)

Repositions the shapes in the given prototype to the specified point.

MoveByRepositioning(DiagramDragEventArgs)

Repositions the shapes in the ElementGroupPrototype by the amount determined by the mouse position.

MoveByRepositioning(ElementGroupPrototype, DiagramItemCollection, PointD, DiagramItem)

Repositions the shapes in the given prototype to the specified point.

C++
public:
 virtual void MoveByRepositioning(Microsoft::VisualStudio::Modeling::ElementGroupPrototype ^ elementGroupPrototype, Microsoft::VisualStudio::Modeling::Diagrams::DiagramItemCollection ^ topLevelItems, Microsoft::VisualStudio::Modeling::Diagrams::PointD moveDelta, Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ hitDiagramItem);

Parameters

elementGroupPrototype
ElementGroupPrototype

The ElementGroupPrototype containing the shapes being moved.

topLevelItems
DiagramItemCollection

Collection of DiagramItems, constructed from the top-level shapes in the EGP.

moveDelta
PointD

The new placement of the shapes.

hitDiagramItem
DiagramItem

Applies to

Visual Studio SDK 2022 and other versions
Product Versions
Visual Studio SDK 2017, 2019, 2022

MoveByRepositioning(DiagramDragEventArgs)

Repositions the shapes in the ElementGroupPrototype by the amount determined by the mouse position.

C++
protected:
 void MoveByRepositioning(Microsoft::VisualStudio::Modeling::Diagrams::DiagramDragEventArgs ^ diagramDragArgs);

Parameters

diagramDragArgs
DiagramDragEventArgs

A DiagramDragEventArgs that contains event data.

Applies to

Visual Studio SDK 2022 and other versions
Product Versions
Visual Studio SDK 2017, 2019, 2022