Freigeben über


ShapeElement.Click Event

Occurs when the user clicks the mouse over a shape.

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

Syntax

'Declaration
Public Event Click As DiagramPointEventHandler
public event DiagramPointEventHandler Click
public:
 event DiagramPointEventHandler^ Click {
    void add (DiagramPointEventHandler^ value);
    void remove (DiagramPointEventHandler^ value);
}
member Click : IEvent<DiagramPointEventHandler,
    DiagramPointEventArgs>
JScript does not support events.

Remarks

A convenient place to add a listener for this event is InitializeInstanceResources(). To override this method in your custom code, you must set the Generates Double Derived property for the shape in DSL Definition and then click Transform All Templates in Solution Explorer.

Consider overriding OnClick(DiagramPointEventArgs) instead of setting a handler for this event.

.NET Framework Security

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace

OnClick(DiagramPointEventArgs)