Class TreeViewPrintHeaderFooterEventArgs
Represents the data for the DrawPrintHeader and DrawPrintFooter events.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class TreeViewPrintHeaderFooterEventArgs : SyncfusionCancelEventArgs
Constructors
TreeViewPrintHeaderFooterEventArgs(Rectangle, Graphics, Int32, Int32, Boolean)
Initializes a new instance of the TreeViewPrintHeaderFooterEventArgs class.
Declaration
public TreeViewPrintHeaderFooterEventArgs(Rectangle drawRectangle, Graphics graphics, int pageNumber, int pageCount, bool cancel)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Rectangle | drawRectangle | Rectangle area to draw Header or Footer. |
System.Drawing.Graphics | graphics | Printer graphics. |
System.Int32 | pageNumber | Current page number. |
System.Int32 | pageCount | Total page count. |
System.Boolean | cancel | Indicates whether printing should be canceled. |
Properties
DrawRectangle
Gets the Rectangle area to draw Header or Footer.
Declaration
public Rectangle DrawRectangle { get; }
Property Value
Type |
---|
System.Drawing.Rectangle |
Graphics
Gets the printer graphics.
Declaration
public Graphics Graphics { get; }
Property Value
Type |
---|
System.Drawing.Graphics |
PageCount
Gets the total page count.
Declaration
public int PageCount { get; }
Property Value
Type |
---|
System.Int32 |
PageNumber
Gets the current page number.
Declaration
public int PageNumber { get; }
Property Value
Type |
---|
System.Int32 |