**** Merged from MCS ****
[mono-project.git] / mcs / class / System.Windows.Forms / Gtk / ScrollEventArgs.cs
blobdb723ec3df0dfa1fb31129c5b47133d8682fceff
1 //
2 // System.Windows.Forms.ScrollEventArgs.cs
3 //
4 // Author:
5 // stubbed out by Daniel Carrera (dcarrera@math.toronto.edu)
6 // Dennis Hayes (dennish@Raytek.com)
7 // Gianandrea Terzi (gterzi@lario.com)
8 //
9 // (C) 2002 Ximian, Inc
12 using System.Runtime.InteropServices;
14 namespace System.Windows.Forms {
16 // <summary>
17 // </summary>
19 public class ScrollEventArgs : EventArgs {
21 #region Fields
23 private int newvalue;
24 private ScrollEventType type;
26 #endregion
29 // --- Constructor
31 public ScrollEventArgs(ScrollEventType type, int newVal)
33 this.newvalue = newvalue;
34 this.type = type;
37 #region Public Properties
39 [ComVisible(true)]
40 public int NewValue
42 get {
43 return newvalue;
45 set {
46 newvalue = value;
50 [ComVisible(true)]
51 public ScrollEventType Type {
52 get {
53 return type;
57 #endregion