Sdílet prostřednictvím


DragEventArgs Konstruktor

Definice

Inicializuje novou instanci DragEventArgs třídy.

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)

Parametry

data
IDataObject

Data přidružená k této události.

keyState
Int32

Aktuální stav kláves SHIFT, CTRL a ALT.

x
Int32

Souřadnice x kurzoru myši v pixelech.

y
Int32

Souřadnice kurzoru myši v pixelech

allowedEffect
DragDropEffects

Jedna z DragDropEffects hodnot.

effect
DragDropEffects

Jedna z DragDropEffects hodnot.

Platí pro

Viz také