Back to Devexpress

RichEditDocumentServer.BeforePagePaint Event

officefileapi-devexpress-dot-xtrarichedit-dot-richeditdocumentserver-23204eda.md

latest2.2 KB
Original Source

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.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
public event BeforePagePaintEventHandler BeforePagePaint
vb
Public Event BeforePagePaint As BeforePagePaintEventHandler

Event Data

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

PropertyDescription
CanvasProvides access to layout drawing surface.
CanvasOwnerTypeDetermines the type of device to which the document layout is rendered.
PageProvides access to the current page being rendered.
PainterGets 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

RichEditDocumentServer Class

RichEditDocumentServer Members

DevExpress.XtraRichEdit Namespace