DragEventArgs 构造函数

定义

初始化 DragEventArgs 类的新实例。

public:
 DragEventArgs(System::Windows::Forms::IDataObject ^ data, int keyState, int x, int y, System::Windows::Forms::DragDropEffects allowedEffect, System::Windows::Forms::DragDropEffects effect);
public DragEventArgs (System.Windows.Forms.IDataObject data, int keyState, int x, int y, System.Windows.Forms.DragDropEffects allowedEffect, System.Windows.Forms.DragDropEffects effect);
public DragEventArgs (System.Windows.Forms.IDataObject? data, int keyState, int x, int y, System.Windows.Forms.DragDropEffects allowedEffect, System.Windows.Forms.DragDropEffects effect);
new System.Windows.Forms.DragEventArgs : System.Windows.Forms.IDataObject * int * int * int * System.Windows.Forms.DragDropEffects * System.Windows.Forms.DragDropEffects -> System.Windows.Forms.DragEventArgs
Public Sub New (data As IDataObject, keyState As Integer, x As Integer, y As Integer, allowedEffect As DragDropEffects, effect As DragDropEffects)

参数

data
IDataObject

与此事件关联的数据。

keyState
Int32

Shift、Ctrl 和 Alt 键的当前状态。

x
Int32

鼠标光标的 X 坐标(以像素为单位)。

y
Int32

鼠标光标的 Y 坐标(以像素为单位)。

allowedEffect
DragDropEffects

DragDropEffects 值之一。

effect
DragDropEffects

DragDropEffects 值之一。

适用于

另请参阅