(DISTFILES): Comment out a few missing files.
[mono-project.git] / mcs / class / System.Windows.Forms / System.Windows.Forms / DragEventArgs.cs
blob53abab24045727e924e7408da9c5c798b606821e
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
14 // Permission is hereby granted, free of charge, to any person obtaining
15 // a copy of this software and associated documentation files (the
16 // "Software"), to deal in the Software without restriction, including
17 // without limitation the rights to use, copy, modify, merge, publish,
18 // distribute, sublicense, and/or sell copies of the Software, and to
19 // permit persons to whom the Software is furnished to do so, subject to
20 // the following conditions:
21 //
22 // The above copyright notice and this permission notice shall be
23 // included in all copies or substantial portions of the Software.
24 //
25 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
26 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
28 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
29 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
34 using System;
35 using System.Runtime.InteropServices;
37 namespace System.Windows.Forms {
39 /// <summary>
40 /// Provides data for the DragDrop, DragEnter, or DragOver event.
41 /// </summary>
42 [ComVisible(true)]
43 public class DragEventArgs : EventArgs {
45 #region Fields
46 private DragDropEffects allowedEffect;
47 private IDataObject data;
48 private DragDropEffects effect;
49 private int keyState;
50 private int x;
51 private int y;
52 #endregion
55 // --- Constructors/Destructors
57 public DragEventArgs(IDataObject data, int keyState, int x, int y, DragDropEffects allowedEffect, DragDropEffects effect) : base()
59 this.data = data;
60 this.keyState = keyState;
61 this.x = x;
62 this.y = y;
63 this.allowedEffect = allowedEffect;
64 this.effect = effect;
67 #region Public Properties
69 [ComVisible(true)]
70 public DragDropEffects AllowedEffect {
71 get {
72 return allowedEffect;
76 [ComVisible(true)]
77 public IDataObject Data {
78 get {
79 return data;
83 [ComVisible(true)]
84 public DragDropEffects Effect {
85 get {
86 return effect;
88 set {
89 effect = value;
93 [ComVisible(true)]
94 public int KeyState {
95 get {
96 return keyState;
100 [ComVisible(true)]
101 public int X {
102 get {
103 return x;
107 [ComVisible(true)]
108 public int Y {
109 get {
110 return y;
114 #endregion