PagePaintEventArgs Class
Provides data for the PrintingSystemBase.BeforePagePaint and PrintingSystemBase.AfterPagePaint events.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Printing.v18.1.Core.dll
Declaration
Remarks
The PrintingSystemBase.BeforePagePaint and PrintingSystemBase.AfterPagePaint events occur before and after a specific page has been painted in a Print Preview.
A PagePaintEventArgs introduces the PagePaintEventArgs.Page property, which provides access to the page to be painted; the PagePaintEventArgs.PageRectangle property, which returns the bounds (size and location) of the page; and the PagePaintEventArgs.Graphics property, which provides access to the graphics object on which the page is painted.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PagePaintEventArgs class.
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.