PaintEventArgs.cs 636 B

1234567891011121314151617181920212223242526272829
  1. using System.Drawing;
  2. namespace System.Windows.Forms
  3. {
  4. public class PaintEventArgs : EventArgs, IDisposable
  5. {
  6. public Rectangle ClipRectangle { get; }
  7. public Graphics Graphics { get; }
  8. public PaintEventArgs(Graphics graphics, Rectangle clipRect)
  9. {
  10. if (graphics == null)
  11. {
  12. throw new ArgumentNullException("graphics");
  13. }
  14. Graphics = graphics;
  15. ClipRectangle = clipRect;
  16. }
  17. public void Dispose()
  18. {
  19. }
  20. }
  21. public delegate void PaintEventHandler(object sender, PaintEventArgs e);
  22. }