menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DrawPageNumberEventArgs - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DrawPageNumberEventArgs

    Provides data for the DrawPageNumber event.

    Inheritance
    System.Object
    DrawPageNumberEventArgs
    Namespace: Syncfusion.GridHelperClasses
    Assembly: Syncfusion.GridHelperClasses.Windows.dll
    Syntax
    public class DrawPageNumberEventArgs : CancelEventArgs
    Remarks

    Event arguments for an event that is raised just prior to the page number being drawn. You can cancel this event to avoid the default drawing and instead do your own drawing to provide a customized look.

    Constructors

    DrawPageNumberEventArgs(PaintEventArgs, Rectangle, String)

    Initializes a new instance of the DrawPageNumberEventArgs class.

    Declaration
    public DrawPageNumberEventArgs(PaintEventArgs pe, Rectangle rect, string text)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs pe

    The System.Windows.Forms.PaintEventArgs that contains the event data.

    System.Drawing.Rectangle rect

    To set the region to be drawn with text.

    System.String text

    Text to be drawn.

    Properties

    Pe

    Gets the PaintEventArgs that is drawing the text.

    Declaration
    public PaintEventArgs Pe { get; }
    Property Value
    Type
    System.Windows.Forms.PaintEventArgs

    Rect

    Gets or sets the Rectangle where the text is drawn.

    Declaration
    public Rectangle Rect { get; set; }
    Property Value
    Type
    System.Drawing.Rectangle

    Text

    Gets or sets the text to be drawn.

    Declaration
    public string Text { get; set; }
    Property Value
    Type
    System.String
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved