ShapeElement.OnDoubleClick Method

Called when the user double-clicks 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 OnDoubleClick ( _
    e As DiagramPointEventArgs _
)
public virtual void OnDoubleClick(
    DiagramPointEventArgs e
)
public:
virtual void OnDoubleClick(
    DiagramPointEventArgs^ e
)
abstract OnDoubleClick : 
        e:DiagramPointEventArgs -> unit  
override OnDoubleClick : 
        e:DiagramPointEventArgs -> unit
public function OnDoubleClick(
    e : DiagramPointEventArgs
)

Parameters

Remarks

Override this method to respond to a double click.

As an alternative, you can add a handler for the DoubleClick event. You can do that without altering the code of the target shape; but you must set a handler separately for each instance.

.NET Framework Security

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace

DoubleClick

Other Resources

How to: Intercept a Click on a Shape or Decorator