ShapeElement.OnDragDrop(DiagramDragEventArgs) Method

Definition

Event raised when an IDataObject is dragged over and then dropped into the ShapeElement.

C++
public:
 virtual void OnDragDrop(Microsoft::VisualStudio::Modeling::Diagrams::DiagramDragEventArgs ^ e);

Parameters

e
DiagramDragEventArgs

The drag arguments to be used to update the model with the IDataObject dropped.

Remarks

A hit test is performed and the event is fired to the most relevant ShapeElement.

Applies to

Product Versions
Visual Studio SDK 2017, 2019, 2022