GetCachedGraphics() Method

Returns a System.Drawing.Graphics object that is instantiated on demand and cached. When the grid size, grid location or scroll position changes the graphics object will be recreated. Use GetCachedGraphics when you want to optimize drawing speed of the grid and call DrawClippedGrid(Graphics,Rectangle) to draw cells directly with this graphics object as shown in the TraderGridTest example.
Public Overridable Function GetCachedGraphics() As Graphics
Dim instance As GridControlBase
Dim value As Graphics
value = instance.GetCachedGraphics()
public virtual Graphics GetCachedGraphics()

Return Value

A Graphics object.

Syncfusion.Grid.Windows: 17.4460.0.39

See Also