Back to Devexpress

XRControl.PreviewMouseDown Event

xtrareports-devexpress-dot-xtrareports-dot-ui-dot-xrcontrol-de2aa2df.md

latest3.1 KB
Original Source

XRControl.PreviewMouseDown Event

Occurs when an end-user presses the mouse button while the mouse pointer is hovering over one of the bricks created for the control‘s representation in the report preview.

Namespace : DevExpress.XtraReports.UI

Assembly : DevExpress.XtraReports.v25.2.dll

NuGet Package : DevExpress.Reporting.Core

Declaration

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

Event Data

The PreviewMouseDown 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 PreviewMouseDown event fires only for Windows Forms applications.

Use this event to perform different actions when a control is clicked while the report it is located in is being previewed.

The PreviewMouseDown event is raised along with the other events listed below in the following order:

See Also

PreviewClick

PreviewDoubleClick

PreviewMouseMove

PreviewMouseUp

XRControl Class

XRControl Members

DevExpress.XtraReports.UI Namespace