This commit was manufactured by cvs2svn to create branch 'mono-1-0'.
[mono.git] / mcs / class / System.Windows.Forms / System.Windows.Forms / SplitterEventArgs.cs
index 6a5d35d73ec72025da484de54e37640d8d86bed7..9b3ecafdf9aeff48d9ab4d66a1c3e736faf31cfa 100644 (file)
@@ -1,76 +1,98 @@
-//\r
-// System.Windows.Forms.SplitterEventArgs.cs\r
-//\r
-// Author:\r
-//   stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)\r
-//      Partially completed by Dennis Hayes (dennish@raytek.com)\r
-//   Gianandrea Terzi (gianandrea.terzi@lario.com)\r
-//\r
-// (C) 2002 Ximian, Inc\r
-//\r
-\r
-namespace System.Windows.Forms {\r
-\r
-       // <summary>\r
-       // </summary>\r
-\r
-    [ComVisible(true)]\r
-       public class SplitterEventArgs : EventArgs {\r
-\r
-               #region Fields\r
-               private int x;\r
-               private int y;\r
-               private int splitx;\r
-               private int splity;\r
-               #endregion\r
-\r
-               //\r
-               //  --- Constructor\r
-               //\r
-               public SplitterEventArgs(int x, int y, int splitX, int splitY)\r
-               {\r
-                       this.x = x;\r
-                       this.y = y;\r
-                       splitx = splitX;\r
-                       splity = splitY;\r
-               }\r
-\r
-               #region Public Properties\r
-\r
-               [ComVisible(true)]\r
-               public int SplitX {\r
-                       get {\r
-                               return splitx;\r
-                       }\r
-                       set {\r
-                               splitx = value;\r
-                       }\r
-               }\r
-\r
-               [ComVisible(true)]\r
-               public int SplitY {\r
-                       get {\r
-                               return splity;\r
-                       }\r
-                       set {\r
-                               splity = value;\r
-                       }\r
-               }\r
-\r
-               [ComVisible(true)]\r
-               public int X {\r
-                       get {\r
-                               return x;\r
-                       }\r
-               }\r
-\r
-               [ComVisible(true)]\r
-               public int Y {\r
-                       get {\r
-                               return y;\r
-                       }\r
-               }\r
-               #endregion\r
-\r
-       }\r
-}\r
+//
+// System.Windows.Forms.SplitterEventArgs.cs
+//
+// Author:
+//   stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
+//      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.Runtime.InteropServices;
+
+namespace System.Windows.Forms {
+
+       // <summary>
+       // </summary>
+
+    [ComVisible(true)]
+       public class SplitterEventArgs : EventArgs {
+
+               #region Fields
+               private int x;
+               private int y;
+               private int splitx;
+               private int splity;
+               #endregion
+
+               //
+               //  --- Constructor
+               //
+               public SplitterEventArgs(int x, int y, int splitX, int splitY)
+               {
+                       this.x = x;
+                       this.y = y;
+                       splitx = splitX;
+                       splity = splitY;
+               }
+
+               #region Public Properties
+
+               [ComVisible(true)]
+               public int SplitX {
+                       get {
+                               return splitx;
+                       }
+                       set {
+                               splitx = value;
+                       }
+               }
+
+               [ComVisible(true)]
+               public int SplitY {
+                       get {
+                               return splity;
+                       }
+                       set {
+                               splity = value;
+                       }
+               }
+
+               [ComVisible(true)]
+               public int X {
+                       get {
+                               return x;
+                       }
+               }
+
+               [ComVisible(true)]
+               public int Y {
+                       get {
+                               return y;
+                       }
+               }
+               #endregion
+       }
+}