DragEventArgs 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
DragEventArgs(IDataObject, Int32, Int32, Int32, DragDropEffects, DragDropEffects)
初始化 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 價值。
另請參閱
適用於
DragEventArgs(IDataObject, Int32, Int32, Int32, DragDropEffects, DragDropEffects, DropImageType, String, String)
初始化 DragEventArgs 類別的新執行個體。
public:
DragEventArgs(System::Windows::Forms::IDataObject ^ data, int keyState, int x, int y, System::Windows::Forms::DragDropEffects allowedEffect, System::Windows::Forms::DragDropEffects effect, System::Windows::Forms::DropImageType dropImageType, System::String ^ message, System::String ^ messageReplacementToken);
public DragEventArgs(System.Windows.Forms.IDataObject? data, int keyState, int x, int y, System.Windows.Forms.DragDropEffects allowedEffect, System.Windows.Forms.DragDropEffects effect, System.Windows.Forms.DropImageType dropImageType, string? message, string? messageReplacementToken);
public DragEventArgs(System.Windows.Forms.IDataObject? data, int keyState, int x, int y, System.Windows.Forms.DragDropEffects allowedEffect, System.Windows.Forms.DragDropEffects effect, System.Windows.Forms.DropImageType dropImageType, string message, string messageReplacementToken);
new System.Windows.Forms.DragEventArgs : System.Windows.Forms.IDataObject * int * int * int * System.Windows.Forms.DragDropEffects * System.Windows.Forms.DragDropEffects * System.Windows.Forms.DropImageType * string * string -> 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, dropImageType As DropImageType, message As String, messageReplacementToken As String)
參數
- data
- IDataObject
- keyState
- Int32
- x
- Int32
- y
- Int32
- allowedEffect
- DragDropEffects
- effect
- DragDropEffects
- dropImageType
- DropImageType
- message
- String
- messageReplacementToken
- String