Class GridPrintHeaderFooterTemplateArgs
Provides data for the DrawGridPrintHeader and DrawGridPrintFooter events
Inherited Members
Namespace: Syncfusion.GridHelperClasses
Assembly: Syncfusion.GridHelperClasses.Windows.dll
Syntax
public class GridPrintHeaderFooterTemplateArgs : SyncfusionCancelEventArgs
Remarks
To draw the Header / Footer for the Grid Print document, handle the DrawGridPrintHeader and DrawGridPrintFooter events
Constructors
GridPrintHeaderFooterTemplateArgs(Rectangle, Graphics, Int32, Int32, Boolean)
Initializes a new instance of the GridPrintHeaderFooterTemplateArgs class.
Declaration
public GridPrintHeaderFooterTemplateArgs(Rectangle drawRectangle, Graphics graphics, int pageNumber, int pageCount, bool cancel)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Rectangle | drawRectangle | Rectangle area to draw Header / 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 |