PrepareGraphics Event (GridModel)

Occurs before the grid draws to or uses a System.Drawing.Graphics context.
<DescriptionAttribute("Occurs before the grid draws to or uses a Graphics context.")>
Public Event PrepareGraphics As GraphicsEventHandler
Dim instance As GridModel
Dim handler As GraphicsEventHandler
AddHandler instance.PrepareGraphics, handler
[Description("Occurs before the grid draws to or uses a Graphics context.")]
public event GraphicsEventHandler PrepareGraphics
Event Data

The event handler receives an argument of type GraphicsEventArgs containing data related to this event. The following GraphicsEventArgs properties provide information specific to this event.

Returns the window graphics object.  
Typical places where this event is raised are: GridControlBase.OnPaint of the GridControlBase and GridModelRowColSizeIndexer.ResizeToFit.

Raises a PrepareGraphics event.


Syncfusion.Grid.Windows: 17.3460.0.26

See Also