다음을 통해 공유


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.

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);
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);
abstract member MoveByRepositioning : Microsoft.VisualStudio.Modeling.ElementGroupPrototype * Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection * Microsoft.VisualStudio.Modeling.Diagrams.PointD * Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem -> unit
override this.MoveByRepositioning : Microsoft.VisualStudio.Modeling.ElementGroupPrototype * Microsoft.VisualStudio.Modeling.Diagrams.DiagramItemCollection * Microsoft.VisualStudio.Modeling.Diagrams.PointD * Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem -> unit
Public Overridable Sub MoveByRepositioning (elementGroupPrototype As ElementGroupPrototype, topLevelItems As DiagramItemCollection, moveDelta As PointD, hitDiagramItem As DiagramItem)

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

MoveByRepositioning(DiagramDragEventArgs)

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

protected:
 void MoveByRepositioning(Microsoft::VisualStudio::Modeling::Diagrams::DiagramDragEventArgs ^ diagramDragArgs);
protected void MoveByRepositioning (Microsoft.VisualStudio.Modeling.Diagrams.DiagramDragEventArgs diagramDragArgs);
member this.MoveByRepositioning : Microsoft.VisualStudio.Modeling.Diagrams.DiagramDragEventArgs -> unit
Protected Sub MoveByRepositioning (diagramDragArgs As DiagramDragEventArgs)

Parameters

diagramDragArgs
DiagramDragEventArgs

A DiagramDragEventArgs that contains event data.

Applies to