ShapeElement.MouseWheel Event

Occurs when the user rotates the mouse wheel.

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

Syntax

'Declaration
Public Event MouseWheel As DiagramMouseEventHandler
public event DiagramMouseEventHandler MouseWheel
public:
 event DiagramMouseEventHandler^ MouseWheel {
    void add (DiagramMouseEventHandler^ value);
    void remove (DiagramMouseEventHandler^ value);
}
member MouseWheel : IEvent<DiagramMouseEventHandler,
    DiagramMouseEventArgs>
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.

.NET Framework Security

See Also

Reference

ShapeElement Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace