Occurs before a specific page has been painted in a Print Preview.
NuGet Packages: DevExpress.Printing.Core, DevExpress.Win.Dashboard.Design
public event PagePaintEventHandler BeforePagePaint
Public Event BeforePagePaint As PagePaintEventHandler
The BeforePagePaint event's data class is PagePaintEventArgs. The following properties provide information specific to this event:
|Graphics||Provides access to the graphics object on which the PagePaintEventArgs.Page is painted.|
|Page||Provides access to the page for which the PrintingSystemBase.BeforePagePaint or PrintingSystemBase.AfterPagePaint event is raised.|
|PageRectangle||Returns the bounds (size and location) of the page for which the PrintingSystemBase.BeforePagePaint or PrintingSystemBase.AfterPagePaint event is raised.|
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BeforePagePaint event.
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.