This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
[mono.git] / mcs / class / System.Windows.Forms / System.Windows.Forms / MeasureItemEventArgs.cs
index b13121a69210ac4772686966c4d9d739558f26a9..4314102bd6879ddceeefe04f99f4587a53a033f6 100644 (file)
-//\r
-// System.Windows.Forms.MeasureItemEventArgs.cs\r
-//\r
-// Author:\r
-//   stubbed out by Paul Osman (paul.osman@sympatico.ca)\r
-//     Partially completed by Dennis Hayes (dennish@raytek.com)\r
-//\r
-// (C) 2002 Ximian, Inc\r
-//\r
-\r
-using System;\r
-using System.Reflection;\r
-using System.Globalization;\r
-//using System.Windows.Forms.AccessibleObject.IAccessible;\r
-using System.Drawing;\r
-\r
-namespace System.Windows.Forms  {\r
-\r
-\r
-       /// <summary>\r
-       /// </summary>\r
-\r
-       public class MeasureItemEventArgs : EventArgs {\r
-               private Graphics graphics;\r
-               private int index;\r
-               private int itemheight;\r
-               private int itemwidth;\r
-\r
-               //\r
-               //  --- Constructors\r
-               //\r
-               \r
-               public MeasureItemEventArgs(Graphics graphics, int index)\r
-               {\r
-                       this.index = index;\r
-                       this.graphics = graphics;\r
-               }\r
-\r
-               public MeasureItemEventArgs(Graphics graphics, int index, int itemheight) \r
-               {\r
-                       this.index = index;\r
-                       this.graphics = graphics;\r
-                       itenheight = ItemHeight;\r
-               }\r
-               \r
-               //\r
-               // -- Public Methods\r
-               //\r
-\r
-//             public virtual bool Equals(object o) \r
-//             {\r
-//                     throw new NotImplementedException();\r
-//             }\r
-//\r
-//             public static bool Equals(object o, object o)\r
-//             {\r
-//                     throw new NotImplementedException();\r
-//             }\r
-//\r
-//             public virtual int GetHashCode()\r
-//             {\r
-//                     throw new NotImplementedException();\r
-//             }\r
-//\r
-//             public Type GetType()\r
-//             {\r
-//                     throw new NotImplementedException();\r
-//             }\r
-//\r
-//             public virtual string ToString()\r
-//             {\r
-//                     throw new NotImplementedException();\r
-//             }\r
-//\r
-//             //\r
-//             // -- Protected Methods\r
-//             //\r
-//\r
-//             ~MeasureItemEventArgs() \r
-//             {\r
-//                     throw new NotImplementedException();\r
-//             }\r
-//\r
-//             protected object MemberwiseClone() \r
-//             {\r
-//                     throw new NotImplementedException();\r
-//             }\r
-\r
-               //\r
-               // -- Public Properties\r
-               //\r
-\r
-               public Graphics Graphics  {\r
-                       get { \r
-                               return graphics;\r
-                       }\r
-               }\r
-\r
-               public int Index  {\r
-                       get {\r
-                               return index;\r
-                       }\r
-               }\r
-\r
-               public int ItemHeight  {\r
-                       get {\r
-                               return itemheight;\r
-                       }\r
-                       set {\r
-                               itemheight = value;\r
-                       }\r
-               }\r
-\r
-               public int ItemWidth  {\r
-                       get {\r
-                               return itemwidth;\r
-                       }\r
-                       set {\r
-                               itemwidth = value;\r
-                       }\r
-               }\r
-       }\r
-}\r
-               \r
+//
+// System.Windows.Forms.MeasureItemEventArgs.cs
+//
+// Author:
+//   stubbed out by Paul Osman (paul.osman@sympatico.ca)
+//     Partially completed by Dennis Hayes (dennish@raytek.com)
+//     Gianandrea Terzi (gianandrea.terzi@lario.com)
+//
+// (C) 2002 Ximian, Inc
+//
+
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+
+using System;
+using System.Reflection;
+using System.Globalization;
+//using System.Windows.Forms.AccessibleObject.IAccessible;
+using System.Drawing;
+
+namespace System.Windows.Forms  {
+
+
+       /// <summary>
+       /// </summary>
+
+       public class MeasureItemEventArgs : EventArgs {
+
+               #region Fields
+
+               private Graphics graphics;
+               private int index;
+               private int itemheight = -1;
+               private int itemwidth = -1;
+
+               #endregion
+
+               //
+               //  --- Constructors
+               //
+               public MeasureItemEventArgs(Graphics graphics, int index)
+               {
+                       this.index = index;
+                       this.graphics = graphics;
+               }
+
+               public MeasureItemEventArgs(Graphics graphics, int index, int itemheight) 
+               {
+                       this.index = index;
+                       this.graphics = graphics;
+                       itemheight = ItemHeight;
+               }
+
+               #region Public Properties
+
+               public Graphics Graphics  
+               {
+                       get 
+                       { 
+                               return graphics;
+                       }
+               }
+
+               public int Index  
+               {
+                       get 
+                       {
+                               return index;
+                       }
+               }
+
+               public int ItemHeight  
+               {
+                       get 
+                       {
+                               return itemheight;
+                       }
+                       set 
+                       {
+                               itemheight = value;
+                       }
+               }
+
+               public int ItemWidth  
+               {
+                       get 
+                       {
+                               return itemwidth;
+                       }
+                       set 
+                       {
+                               itemwidth = value;
+                       }
+               }
+
+               #endregion
+       }
+}
+