MindFusion WinForms Programmer's Guide
DrawContext Class
Remarks See Also
 





Provides contextual information when drawing report items.

Namespace: MindFusion.Reporting
Assembly: MindFusion.Reporting

 Syntax

C#  Copy Code

public class DrawContext

Visual Basic  Copy Code

Public Class DrawContext

 Remarks

Instances of this class are passed as arguments to the DrawPage method of the ReportLayout.

 Example

The following example layouts a report and draws its last page. The layout assumes that report1 is a variable identifying an existing report and that graphics identifies an instance of IGraphics.

C#  Copy Code

ReportLayout layout = report1.Layout(new SizeF(210, 297),
    new Margins(20), PageOrientation.Portrait);
DrawContext context = new DrawContext(report1);

report1.DrawPage(graphics, layout.PageCount - 1, context);

 Inheritance Hierarchy

System.Object
    MindFusion.Reporting.DrawContext

 See Also

DrawContext Members
MindFusion.Reporting Namespace