PaintValueEventArgs.cs 918 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // System.Drawing.Design.PaintvalueEventArgs.cs
  2. //
  3. // Author:
  4. // Alejandro Sánchez Acosta <[email protected]>
  5. //
  6. // (C) Alejandro Sánchez Acosta
  7. //
  8. using System.ComponentModel;
  9. namespace System.Drawing.Design
  10. {
  11. public class PaintValueEventArgs : EventArgs
  12. {
  13. private ITypeDescriptorContext context;
  14. private object value;
  15. private Graphics graphics;
  16. private Rectangle bounds;
  17. public PaintValueEventArgs(ITypeDescriptorContext context, object value, Graphics graphics, Rectangle bounds) {
  18. this.context = context;
  19. this.value = value;
  20. this.graphics = graphics;
  21. this.bounds = bounds;
  22. }
  23. public Rectangle Bounds
  24. {
  25. get {
  26. return bounds;
  27. }
  28. }
  29. public ITypeDescriptorContext Context
  30. {
  31. get {
  32. return context;
  33. }
  34. }
  35. public Graphics Graphics
  36. {
  37. get {
  38. return graphics;
  39. }
  40. }
  41. public object Value
  42. {
  43. get {
  44. return value;
  45. }
  46. }
  47. }
  48. }