Share via


ShapeElement.OnDragEnter Method

Called when the mouse enters a shape during a drag operation.

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

Syntax

'Declaration
Public Overridable Sub OnDragEnter ( _
    e As DiagramDragEventArgs _
)
public virtual void OnDragEnter(
    DiagramDragEventArgs e
)
public:
virtual void OnDragEnter(
    DiagramDragEventArgs^ e
)
abstract OnDragEnter : 
        e:DiagramDragEventArgs -> unit 
override OnDragEnter : 
        e:DiagramDragEventArgs -> unit 
public function OnDragEnter(
    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