ShapeElement::OnClick Method (DiagramPointEventArgs^)
Visual Studio 2015
Called when the user clicks the shape.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)
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.
Show: