Back to Devexpress

PrintingSystemBase.BeforePagePaint Event

corelibraries-devexpress-dot-xtraprinting-dot-printingsystembase-7e7b1393.md

latest2.5 KB
Original Source

PrintingSystemBase.BeforePagePaint Event

Occurs before a specific page has been painted in a Print Preview.

Namespace : DevExpress.XtraPrinting

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
public event PagePaintEventHandler BeforePagePaint
vb
Public Event BeforePagePaint As PagePaintEventHandler

Event Data

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

PropertyDescription
GraphicsProvides access to the graphics object on which the PagePaintEventArgs.Page is painted.
PageProvides access to the page for which the PrintingSystemBase.BeforePagePaint or PrintingSystemBase.AfterPagePaint event is raised.
PageRectangleReturns the bounds (size and location) of the page for which the PrintingSystemBase.BeforePagePaint or PrintingSystemBase.AfterPagePaint event is raised.

Remarks

Handle the BeforePagePaint event to perform any specific actions after any page is painted in the Print Preview.

For more information on handling events, see Events and Delegates in MSDN.

See Also

PrintingSystemBase Class

PrintingSystemBase Members

DevExpress.XtraPrinting Namespace