This topic has not yet been rated - Rate this topic

ShapeElement.OnClick Method

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

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ