共用方式為


ShapeElement.OnDragOver(DiagramDragEventArgs) Method

Definition

Event raised when an IDataObject is dragged over the ShapeElement's bounds.

public:
 virtual void OnDragOver(Microsoft::VisualStudio::Modeling::Diagrams::DiagramDragEventArgs ^ e);
public virtual void OnDragOver (Microsoft.VisualStudio.Modeling.Diagrams.DiagramDragEventArgs e);
abstract member OnDragOver : Microsoft.VisualStudio.Modeling.Diagrams.DiagramDragEventArgs -> unit
override this.OnDragOver : Microsoft.VisualStudio.Modeling.Diagrams.DiagramDragEventArgs -> unit
Public Overridable Sub OnDragOver (e As DiagramDragEventArgs)

Parameters

e
DiagramDragEventArgs

The drag arguments to be set to indicate how to handle the drag.

Remarks

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

Applies to