Skip to main content
A newer version of this page is available. .

MouseHandlerServiceWrapper.OnMouseWheel(PortableMouseEventArgs) Method

Override this method to handle the MouseWheel event.

Namespace: DevExpress.Services

Assembly: DevExpress.Data.v20.2.dll

NuGet Packages: DevExpress.Data, DevExpress.WindowsDesktop.Data

Declaration

public virtual void OnMouseWheel(
    PortableMouseEventArgs e
)

Parameters

Name Type Description
e DevExpress.Portable.Input.PortableMouseEventArgs

This class is equivalent to System.Windows.Forms.MouseEventArgs and contains information on a pressed mouse button, the mouse coordinates, and the amount the mouse wheel moved.

Remarks

The MouseWheel event occurs when the mouse wheel moves while a control is focused. Use the OnMouseWheel method to handle this event.

The following code snippets (auto-collected from DevExpress Examples) contain references to the OnMouseWheel(PortableMouseEventArgs) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also