Class GridModelGraphicsProvider
Returns a graphics context when needed and raises a PrepareGraphics event to initialize the graphics object.
Inherited Members
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)
System.Object.ToString()
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 |
---|
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
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 |
---|
GraphicsEventHandler |
Implements
System.IDisposable