ShapeElement::OnClick Method (DiagramPointEventArgs^)

 

Called when the user 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)

public:
virtual void OnClick(
	DiagramPointEventArgs^ e
)

Parameters

e
Type: Microsoft.VisualStudio.Modeling.Diagrams::DiagramPointEventArgs^

Event arguments including mouse position.

Override this method to respond to mouse clicks.

As an alternative, you can add a listener to the Click event. You can do that without changing the code of the target shape. But you need to set up a separate handler for each instance.

Return to top
Show: