2 // System.Windows.Forms.InvalidateEventArgs.cs
5 // stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
6 // Partially completed by Dennis Hayes (dennish@raytek.com)
7 // Gianandrea Terzi (gianandrea.terzi@lario.com)
9 // (C) 2002 Ximian, Inc
12 namespace System
.Windows
.Forms
{
15 // This is only a template. Nothing is implemented yet.
19 public class InvalidateEventArgs
: EventArgs
{
22 private Rectangle InvalidRectangle
;
28 public InvalidateEventArgs(Rectangle invalidRect
)
30 InvalidRectangle
= invalidRect
;
33 #region Public Properties
34 public Rectangle InvalidRect
37 return InvalidRectangle
;
42 #region Public Methods
49 /// Compares two InvalidateEventArgs objects.
50 /// The return value is based on the equivalence of
51 /// InvalidRect Property
52 /// of the two InvalidateEventArgs.
54 public static bool operator == (InvalidateEventArgs InvalidateEventArgsA
, InvalidateEventArgs InvalidateEventArgsB
)
56 return (InvalidateEventArgsA
.InvalidRect
== InvalidateEventArgsB
.InvalidRect
);
61 /// Inequality Operator
65 /// Compares two InvalidateEventArgs objects.
66 /// The return value is based on the equivalence of
67 /// InvalidRect Property
68 /// of the two InvalidateEventArgs.
70 public static bool operator != (InvalidateEventArgs InvalidateEventArgsA
, InvalidateEventArgs InvalidateEventArgsB
)
72 return (InvalidateEventArgsA
.InvalidRect
!= InvalidateEventArgsB
.InvalidRect
);
81 /// Checks equivalence of this
82 /// InvalidateEventArgs and another
85 public override bool Equals (object obj
)
87 if (!(obj
is InvalidateEventArgs
))return false;
88 return (this == (InvalidateEventArgs
) obj
);
92 /// GetHashCode Method
96 /// Calculates a hashing value.
99 public override int GetHashCode ()
101 //FIXME: add class specific stuff;
102 return base.GetHashCode();
110 /// Formats the object as a string.
113 public override string ToString ()
115 //FIXME: add class specific stuff;
116 return base.ToString() + " InvalidateEventArgs";