共用方式為


ShapeElement.OnDragOver Method

Override this method to respond to the movement of the mouse over the shape. Set e.Effect to indicate the cursor feedback to the user.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'宣告
Public Overridable Sub OnDragOver ( _
    e As DiagramDragEventArgs _
)
public virtual void OnDragOver(
    DiagramDragEventArgs e
)
public:
virtual void OnDragOver(
    DiagramDragEventArgs^ e
)
abstract OnDragOver : 
        e:DiagramDragEventArgs -> unit 
override OnDragOver : 
        e:DiagramDragEventArgs -> unit 
public function OnDragOver(
    e : DiagramDragEventArgs
)

Parameters

Remarks

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

.NET Framework Security

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace

Other Resources

How to: Add a Drag-and-Drop Handler