Creates a GraphicsCache object for the current GridControl.
public GraphicsCache CreateGraphicsCache()
Public Function CreateGraphicsCache As GraphicsCache
A GraphicsCache object. null if no control handle is currently created.
When handling grid control events, you may want to access the control's Graphics surface (for example, to calculate custom text size). Certain events (e.g., GridView.MeasurePreviewHeight) provide no event parameters to access the Graphics surface. In these cases, use the CreateGraphicsCache method to obtain the GridControl's graphics surface.
The object returned by the CreateGraphicsCache method must be manually disposed of when it is no longer needed.