DragEventArgs.DragEventArgs Constructor

Initializes a new instance of the DragEventArgs class.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public DragEventArgs (
	IDataObject data,
	int keyState,
	int x,
	int y,
	DragDropEffects allowedEffect,
	DragDropEffects effect
)
public DragEventArgs (
	IDataObject data, 
	int keyState, 
	int x, 
	int y, 
	DragDropEffects allowedEffect, 
	DragDropEffects effect
)
public function DragEventArgs (
	data : IDataObject, 
	keyState : int, 
	x : int, 
	y : int, 
	allowedEffect : DragDropEffects, 
	effect : DragDropEffects
)
Not applicable.

Parameters

data

The data associated with this event.

keyState

The current state of the SHIFT, CTRL, and ALT keys.

x

The x-coordinate of the mouse cursor in pixels.

y

The y-coordinate of the mouse cursor in pixels.

allowedEffect

One of the DragDropEffects values.

effect

One of the DragDropEffects values.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: