Skip to main content
A newer version of this page is available. .

BeforePagePaintEventArgs.Canvas Property

Provides access to layout drawing surface.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v18.2.Core.dll

Declaration

public PageCanvas Canvas { get; }

Property Value

Type Description
PageCanvas

A PageCanvas object which encapsulates the layout drawing surface.

Remarks

Use the Canvas property to access methods for drawing objects on the document layout.

Example

This code snippet illustrates the implementation of a PagePainter descendant. It draws color rectangles in place of the words and labels a floating picture with a text string drawn over it.

Public Class MyLayoutPainter
    Inherits PagePainter
See Also