namespace System.Windows.Forms { public class DragEventArgs : EventArgs { public IDataObject Data { get; } public int KeyState { get; } public int X { get; } public int Y { get; } public DragDropEffects AllowedEffect { get; } public DragDropEffects Effect { get; set; } public DragEventArgs(IDataObject data, int keyState, int x, int y, DragDropEffects allowedEffect, DragDropEffects effect) { Data = data; KeyState = keyState; X = x; Y = y; AllowedEffect = allowedEffect; Effect = effect; } } public delegate void DragEventHandler(object sender, DragEventArgs e); }