DragEventArgs Construtor

Definição

Inicializa uma nova instância da classe 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

Os dados associados a este evento.

keyState
Int32

O estado atual das teclas SHIFT, CTRL e ALT.

x
Int32

A coordenada X do cursor do mouse em pixels.

y
Int32

A coordenada Y do cursor do mouse em pixels.

allowedEffect
DragDropEffects

Um dos valores de DragDropEffects.

effect
DragDropEffects

Um dos valores de DragDropEffects.

Aplica-se a

Confira também