Releases all resources used by the System.Windows.Forms.PaintEventArgs.
Call PaintEventArgs.Dispose when you are finished using the System.Windows.Forms.PaintEventArgs. The PaintEventArgs.Dispose method leaves the System.Windows.Forms.PaintEventArgs in an unusable state. After calling PaintEventArgs.Dispose, you must release all references to the System.Windows.Forms.PaintEventArgs so the garbage collector can reclaim the memory that the System.Windows.Forms.PaintEventArgs was occupying. For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.
Always call PaintEventArgs.Dispose before you release your last reference to the System.Windows.Forms.PaintEventArgs. Otherwise, the resources it is using will not be freed until the garbage collector calls the System.Windows.Forms.PaintEventArgs object's Finalize method.