- Fixed RadioButton display
[mono.git] / mcs / class / System.Windows.Forms / System.Windows.Forms / DragEventArgs.cs
1 //
2 // System.Windows.Forms.DragEventArgs
3 //
4 // Author:
5 //   stubbed out by Richard Baumann (biochem333@nyc.rr.com)
6 //   Implemented by Richard Baumann <biochem333@nyc.rr.com>
7 //   Dennis Hayes (dennish@Raytek.com)
8 //   Gianandrea Terzi (gianandrea.terzi@lario.com)
9 //
10 // (C) Ximian, Inc., 2002
11 //
12
13 using System;
14 using System.Runtime.InteropServices;
15
16 namespace System.Windows.Forms {
17
18         /// <summary>
19         ///     Provides data for the DragDrop, DragEnter, or DragOver event.
20         /// </summary>
21         [ComVisible(true)]
22         public class DragEventArgs : EventArgs {
23
24                 #region Fields
25                 private DragDropEffects allowedEffect;
26                 private IDataObject data;
27                 private DragDropEffects effect;
28                 private int keyState;
29                 private int x;
30                 private int y;
31                 #endregion
32
33                 //
34                 //  --- Constructors/Destructors
35                 //
36                 public DragEventArgs(IDataObject data, int keyState, int x, int y, DragDropEffects allowedEffect, DragDropEffects effect) : base()
37                 {
38                         this.data = data;
39                         this.keyState = keyState;
40                         this.x = x;
41                         this.y = y;
42                         this.allowedEffect = allowedEffect;
43                         this.effect = effect;
44                 }
45
46                 #region Public Properties
47
48                 [ComVisible(true)]
49                 public DragDropEffects AllowedEffect {
50                         get { 
51                                         return allowedEffect; 
52                         }
53                 }
54
55                 [ComVisible(true)]
56                 public IDataObject Data {
57                         get { 
58                                         return data; 
59                         }
60                 }
61
62                 [ComVisible(true)]
63                 public DragDropEffects Effect {
64                         get { 
65                                         return effect; 
66                         }
67                         set { 
68                                         effect = value; 
69                         }
70                 }
71
72                 [ComVisible(true)]
73                 public int KeyState {
74                         get { 
75                                         return keyState; 
76                         }
77                 }
78
79                 [ComVisible(true)]
80                 public int X {
81                         get { 
82                                         return x; 
83                         }
84                 }
85
86                 [ComVisible(true)]
87                 public int Y {
88                         get { 
89                                         return y; 
90                         }
91                 }
92
93                 #endregion
94         }
95 }