WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridPrintHeaderFooterTemplateArgs - WindowsForms API Reference | Syncfusion DrawGridPrintHeader and DrawGridPrintFooter events ">

    Show / Hide Table of Contents

    Class GridPrintHeaderFooterTemplateArgs

    Provides data for the DrawGridPrintHeader and DrawGridPrintFooter events

    Inheritance
    System.Object
    SyncfusionCancelEventArgs
    GridPrintHeaderFooterTemplateArgs
    Inherited Members
    SyncfusionCancelEventArgs.ToString()
    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 Description
    System.Drawing.Rectangle

    Graphics

    Gets the printer graphics

    Declaration
    public Graphics Graphics { get; }
    Property Value
    Type Description
    System.Drawing.Graphics

    PageCount

    Gets the total page count.

    Declaration
    public int PageCount { get; }
    Property Value
    Type Description
    System.Int32

    PageNumber

    Gets the current page number.

    Declaration
    public int PageNumber { get; }
    Property Value
    Type Description
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved