menu

WinForms

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

    Show / Hide Table of Contents

    Class GraphicsEventArgs

    Provides data for the PrepareGraphics event of a GraphicsProvider instance.

    Inheritance
    System.Object
    System.EventArgs
    SyncfusionEventArgs
    GraphicsEventArgs
    Inherited Members
    SyncfusionEventArgs.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Syncfusion.Drawing
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class GraphicsEventArgs : SyncfusionEventArgs
    Remarks

    The event lets you apply custom settings for the Graphics object, before other routines draw to the object.

    Constructors

    GraphicsEventArgs()

    Initializes a new empty GraphicsEventArgs.

    Declaration
    public GraphicsEventArgs()

    GraphicsEventArgs(Graphics)

    Initializes a new GraphicsEventArgs with a Graphics object.

    Declaration
    public GraphicsEventArgs(Graphics graphics)
    Parameters
    Type Name Description
    System.Drawing.Graphics graphics

    The graphics object.

    Fields

    Empty

    Declaration
    public static readonly GraphicsEventArgs Empty
    Field Value
    Type
    GraphicsEventArgs

    Properties

    Graphics

    Returns the window graphics object.

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