Comparteix a través de


DragEventArgs Constructor

Definición

Inicializa una nueva instancia de la clase 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)

Parámetros

data
IDataObject

Datos asociados a este evento.

keyState
Int32

Estado actual de las teclas MAYÚS, CTRL y ALT.

x
Int32

Coordenada x del cursor del mouse en píxeles.

y
Int32

Coordenada y del cursor del mouse en píxeles.

allowedEffect
DragDropEffects

Uno de los valores de DragDropEffects.

effect
DragDropEffects

Uno de los valores de DragDropEffects.

Se aplica a

Consulte también