Skip to main content

RichEditDocumentServer.BeforePagePaint Event

Enables you to specify a custom PagePainter descendant to alter the way the layout elements are drawn.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v24.1.Core.dll

NuGet Packages: DevExpress.RichEdit.Core, DevExpress.Win.Navigation

Declaration

public event BeforePagePaintEventHandler BeforePagePaint

Event Data

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

Property Description
Canvas Provides access to layout drawing surface.
CanvasOwnerType Determines the type of device to which the document layout is rendered.
Page Provides access to the current page being rendered.
Painter Gets or sets the painter object which implements methods for drawing layout elements.

Remarks

The BeforePagePaint event occurs before the document is printed or exported to PDF. The RichEditControlCompatibility.EnableLegacyPdfExport property should be set to true.

See Also