Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
  • The page you are viewing does not exist in the .NET Standard 2.0+ platform documentation. This link will take you to the parent topic of the current section.

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.v19.1.Core.dll

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.UsePrintingSystemPdfExport property should be set to true.

See Also