Graphics is a managed class that encapsulates drawing functionality, as described in the discussion of GDI later in this article. Public ReadOnly Property ClipRectangle As public class PaintEventArgs : EventArgs, IDisposable The event data class for the Paint event, PaintEventArgs, holds the data needed for drawing a control - a handle to a graphics object and a rectangle that represents the region to draw in. For more information about events in the. A control raises the Paint event whenever it needs to update its display. The base class Control provides drawing functionality through its Paint event. The procedure for freeing graphics resources.The essential elements of the GDI graphics library.The drawing functionality provided by the base class.The following elements are involved in control rendering: However, there are still a wide range of graphical possibilities for your controls and applications. If you want to provide custom rendering for an existing control without creating a new control, your options become more limited. If you're creating a composite control, that is a control that inherits from UserControl or one of the existing Windows Forms controls, you may override the standard graphical representation and provide your own graphics code.