Share via


ShapeElement.DoubleClick Event

Occurs when the user double-clicks the mouse.

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

Syntax

'Declaration
Public Event DoubleClick As DiagramPointEventHandler
'Usage
Dim instance As ShapeElement 
Dim handler As DiagramPointEventHandler 

AddHandler instance.DoubleClick, handler
public event DiagramPointEventHandler DoubleClick
public:
 event DiagramPointEventHandler^ DoubleClick {
    void add (DiagramPointEventHandler^ value);
    void remove (DiagramPointEventHandler^ value);
}
JScript does not support events.

Remarks

A convenient place to add a listener for this event is InitializeInstanceResources(). To override this method in your custom code, you must set the Generates Double Derived property for the shape in DSL Definition and then click Transform All Templates in Solution Explorer.

Consider overriding OnDoubleClick(DiagramPointEventArgs) instead of setting a handler for this event.

.NET Framework Security

See Also

Reference

ShapeElement Class

ShapeElement Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace

OnDoubleClick(DiagramPointEventArgs)