BeforePagePaintEventArgs.Canvas Property
Provides access to layout drawing surface.
Namespace: DevExpress.XtraRichEdit
Assembly: DevExpress.RichEdit.v18.2.Core.dll
Declaration
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.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/layout-api-simple-example-t245818
Public Class MyLayoutPainter
Inherits PagePainter
See Also