menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridModelGraphicsProvider - API Reference

    Show / Hide Table of Contents

    Class GridModelGraphicsProvider

    Returns a graphics context when needed and raises a PrepareGraphics event to initialize the graphics object.

    Inheritance
    System.Object
    NonFinalizeDisposable
    Disposable
    GridModelGraphicsProvider
    Implements
    System.IDisposable
    IGraphicsProvider
    Inherited Members
    NonFinalizeDisposable.Dispose()
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public class GridModelGraphicsProvider : Disposable, IDisposable, IGraphicsProvider

    Constructors

    GridModelGraphicsProvider(GridModel)

    Initializes a new instance ofGridModelGraphicsProvider with a System.Windows.Forms.Control object.

    Declaration
    public GridModelGraphicsProvider(GridModel model)
    Parameters
    Type Name Description
    GridModel model

    The control that will be used for creating the graphics object..

    Properties

    Graphics

    Gets or creates a cached graphics object.

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

    Methods

    Dispose(Boolean)

    Disposes the unmanaged resources.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Overrides
    NonFinalizeDisposable.Dispose(Boolean)

    OnPrepareGraphics(GraphicsEventArgs)

    Raises the PrepareGraphics event.

    Declaration
    protected virtual void OnPrepareGraphics(GraphicsEventArgs e)
    Parameters
    Type Name Description
    GraphicsEventArgs e

    A GraphicsEventArgs that contains the event data.

    Events

    PrepareGraphics

    Occurs after a new System.Drawing.Graphics object was created and gives a handler a chance to initialize the graphics context.

    Declaration
    public event GraphicsEventHandler PrepareGraphics
    Event Type
    Type Description
    GraphicsEventHandler

    Implements

    System.IDisposable
    IGraphicsProvider
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved