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

XRControl.PreviewMouseMove Event

Occurs when the mouse cursor moves over the control during the report’s preview.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v19.1.dll

NuGet Packages: DevExpress.Reporting.Core, DevExpress.WindowsDesktop.Core

Declaration

public virtual event PreviewMouseEventHandler PreviewMouseMove

Event Data

The PreviewMouseMove event's data class is PreviewMouseEventArgs. The following properties provide information specific to this event:

Property Description
Brick Gets a visual brick that represents this control’s contents on a report page.
MouseButton Provides access to the value that specifies which mouse button has been clicked.
PreviewControl Gets the control which shows the print preview of the report for this event.

The event data class exposes the following methods:

Method Description
GetBrickScreenBounds() Obtains the location and size of the PreviewMouseEventArgs.Brick on the screen.

Remarks

Note

The PreviewMouseMove event fires only for Windows Forms applications.

This event occurs even if the cursor moves at least one pixel in any direction over the control. The PreviewMouseMove event can be used to perform different actions when the cursor moves over the control during preview.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PreviewMouseMove event.

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