Syncfusion.Grid.Windows


PrepareGraphics Event (GridModel)

Occurs before the grid draws to or uses a System.Drawing.Graphics context.
Syntax
'Declaration
 
<DescriptionAttribute("Occurs before the grid draws to or uses a Graphics context.")>
<CategoryAttribute("Behavior")>
Public Event PrepareGraphics As GraphicsEventHandler
'Usage
 
Dim instance As GridModel
Dim handler As GraphicsEventHandler
 
AddHandler instance.PrepareGraphics, handler
[Description("Occurs before the grid draws to or uses a Graphics context.")]
[Category("Behavior")]
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.

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

Raises a PrepareGraphics event.

AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.14

See Also