// // System.Windows.Forms.ScrollEventArgs.cs // // Author: // stubbed out by Daniel Carrera (dcarrera@math.toronto.edu) // Dennis Hayes (dennish@Raytek.com) // Gianandrea Terzi (gterzi@lario.com) // // (C) 2002 Ximian, Inc // using System.Runtime.InteropServices; namespace System.Windows.Forms { // // This is only a template. Nothing is implemented yet. // public class ScrollEventArgs : EventArgs { #region Fields private int newvalue; private ScrollEventType type; #endregion // // --- Constructor // [MonoTODO] public ScrollEventArgs(ScrollEventType type, int newVal) { throw new NotImplementedException (); } #region Public Properties [ComVisible(true)] public int NewValue { get { return newvalue; } set { newvalue = value; } } [ComVisible(true)] public ScrollEventType Type { get { return type; } } #endregion #region Public Methods /// /// Equality Operator /// /// /// /// Compares two ScrollEventArgs objects. /// The return value is based on the equivalence of /// newvalue and type Property /// of the two ScrollEventArgs. /// public static bool operator == (ScrollEventArgs ScrollEventArgsA, ScrollEventArgs ScrollEventArgsB) { return ((ScrollEventArgsA.NewValue == ScrollEventArgsB.NewValue) && (ScrollEventArgsA.Type == ScrollEventArgsB.Type)); } /// /// Inequality Operator /// /// /// /// Compares two ScrollEventArgs objects. /// The return value is based on the equivalence of /// newvalue and type Property /// of the two ScrollEventArgs. /// public static bool operator != (ScrollEventArgs ScrollEventArgsA, ScrollEventArgs ScrollEventArgsB) { return ((ScrollEventArgsA.NewValue != ScrollEventArgsB.NewValue) || (ScrollEventArgsA.Type != ScrollEventArgsB.Type)); } /// /// Equals Method /// /// /// /// Checks equivalence of this /// UICuesEventArgs and another /// object. /// public override bool Equals (object obj) { if (!(obj is ScrollEventArgs))return false; return (this == (ScrollEventArgs) obj); } /// /// GetHashCode Method /// /// /// /// Calculates a hashing value. /// [MonoTODO] public override int GetHashCode () { //FIXME: add class specific stuff; return base.GetHashCode(); } /// /// ToString Method /// /// /// /// Formats the object as a string. /// [MonoTODO] public override string ToString () { //FIXME: add class specific stuff; return base.ToString(); } #endregion } }