Disposes of the resources (other than memory) used by the PrintPageEventArgs.
[Visual Basic] Public Sub Dispose() [C#] public void Dispose(); [C++] public: void Dispose(); [JScript] public function Dispose();
Call Dispose when you are finished using the PrintPageEventArgs. The Dispose method leaves the PrintPageEventArgs in an unusable state. After calling Dispose, you must release all references to the PrintPageEventArgs so the memory it was occupying can be reclaimed by garbage collection.
Note Dispose before you release your last reference to the PrintPageEventArgs. Otherwise, the resources the PrintPageEventArgs is using will not be freed until garbage collection calls the PrintPageEventArgs object's destructor.
PrintPageEventArgs Class | PrintPageEventArgs Members | System.Drawing.Printing Namespace