Raised to enable you to perform custom rendering within the canvas.
Namespace: MindFusion.Reporting
Assembly: MindFusion.Reporting
SyntaxC#
Copy Code
|
|---|
public event EventHandler<DrawCanvasEventArgs> RenderContents |
Visual Basic
Copy Code
|
|---|
Public Event RenderContents As EventHandler(Of DrawCanvasEventArgs) |
Event DataRenderContents event handlers receive an argument of type DrawCanvasEventArgs.
ExampleThe following example illustrates how to render a rectangle using a Canvas object. The example assumes that canvas1 is a variable that references a valid Canvas instance.
C#
Copy Code
|
|---|
canvas1.RenderContents += new DrawCanvasEventHandler(this.OnDrawCanvas); |
Visual Basic
Copy Code
|
|---|
AddHandler(canvas1.RenderCanvas, AddressOf Me.OnDrawCanvas) |
See Also