共用方式為


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 值。

適用於

另請參閱