共用方式為


ShapeElement.OnDragDrop Method

Called when the user drags an item onto the shape.

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

Syntax

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

Parameters

.NET Framework Security

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace

Other Resources

How to: Intercept a Click on a Shape or Decorator

How to: Add a Drag-and-Drop Handler