// Authors:
// Peter Bartok pbartok@novell.com
//
-//
-// $Revision: 1.1 $
-// $Modtime: $
-// $Log: PaintEventArgs.cs,v $
-// Revision 1.1 2004/07/09 05:21:25 pbartok
-// - Initial check-in
-//
-//
+
// COMPLETE
using System.Drawing;
namespace System.Windows.Forms {
- public class PaintEventArgs : EventArgs {
+ public class PaintEventArgs : EventArgs, IDisposable {
private Graphics graphics;
private Rectangle clip_rectangle;
}
#endregion // Public Instance Methods
+ // Returns the previous graphics
+ internal Graphics SetGraphics (Graphics g)
+ {
+ Graphics res = graphics;
+ graphics = g;
+
+ return res;
+ }
+
#region Protected Instance Methods
~PaintEventArgs() {
Dispose(false);