Back to Devexpress

XRControl.PreviewMouseMove Event

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrcontrol-54538b42.md

latest2.8 KB
Original Source

XRControl.PreviewMouseMove Event

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

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

csharp
public virtual event PreviewMouseEventHandler PreviewMouseMove
vb
Public Overridable Event PreviewMouseMove As PreviewMouseEventHandler

Event Data

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

PropertyDescription
BrickGets a visual brick that represents this control’s contents on a report page.
MouseButtonProvides access to the value that specifies which mouse button has been clicked.
PreviewControlGets the control which shows the print preview of the report for this event.

The event data class exposes the following methods:

MethodDescription
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.

See Also

PreviewClick

PreviewDoubleClick

PreviewMouseDown

PreviewMouseUp

XRControl Class

XRControl Members

DevExpress.XtraReports.UI Namespace