Skip to main content

MouseHandlerServiceWrapper.OnMouseDown(PortableMouseEventArgs) Method

Override this method to handle the MouseDown event.

Namespace: DevExpress.Services

Assembly: DevExpress.Data.v22.2.dll

NuGet Package: DevExpress.Data


public virtual void OnMouseDown(
    PortableMouseEventArgs e


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.


The MouseDown event occurs when the mouse pointer is over a control and a user presses a mouse button. Use the OnMouseDown method to handle mouse clicks on the control.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the OnMouseDown(PortableMouseEventArgs) method.


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