共用方式為


ShapeElement.OnMouseDown Method

Called when the user presses a mouse key.

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 OnMouseDown ( _
    e As DiagramMouseEventArgs _
)
public virtual void OnMouseDown(
    DiagramMouseEventArgs e
)
public:
virtual void OnMouseDown(
    DiagramMouseEventArgs^ e
)
abstract OnMouseDown : 
        e:DiagramMouseEventArgs -> unit 
override OnMouseDown : 
        e:DiagramMouseEventArgs -> unit 
public function OnMouseDown(
    e : DiagramMouseEventArgs
)

Parameters

.NET Framework Security

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace

Other Resources

How to: Add a Drag-and-Drop Handler