This documentation is archived and is not being maintained.

ShapeElement.OnDoubleClick Method

Called when the user double-clicks the shape.

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

public virtual void OnDoubleClick(
	DiagramPointEventArgs e


Type: Microsoft.VisualStudio.Modeling.Diagrams.DiagramPointEventArgs
Event argument including mouse position.

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.