NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DragEventArgs Constructor

Initializes a new instance of the DragEventArgs class.

[Visual Basic]
Public Sub New( _
   ByVal data As IDataObject, _
   ByVal keyState As Integer, _
   ByVal x As Integer, _
   ByVal y As Integer, _
   ByVal allowedEffect As DragDropEffects, _
   ByVal effect As DragDropEffects _
)
[C#]
public DragEventArgs(
   IDataObject data,
   int keyState,
   int x,
   int y,
   DragDropEffects allowedEffect,
   DragDropEffects effect
);
[C++]
public: DragEventArgs(
   IDataObject* data,
   int keyState,
   int x,
   int y,
   DragDropEffects allowedEffect,
   DragDropEffects effect
);
[JScript]
public function DragEventArgs(
   data : IDataObject,
   keyState : int,
   x : int,
   y : int,
   allowedEffect : DragDropEffects,
   effect : DragDropEffects
);

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.

See Also

DragEventArgs Class | DragEventArgs Members | System.WinForms Namespace | DragDropEffects | IDataObject