_DragEventArgs_Forms Type
Provides data for the OnDragDrop, OnDragEnter, or OnDragOver event.
A DragEventArgs object specifies any data associated with this event; the current state of the SHIFT, CTRL, and ALT keys; the location of the mouse pointer; and the drag-and-drop effects allowed by the source and target of the drag event.
For more information, see DragEventArgs in C#.
Properties | Description |
|---|---|
AllowedEffect | Gets which drag-and-drop operations are allowed by the originator (or source) of the drag event. |
Data | Gets the IDataObject that contains the data associated with this event. |
Effect | Gets or sets the target drop effect in a drag-and-drop operation. |
KeyState | Gets the current state of the SHIFT, CTRL, and ALT keys, as well as the state of the mouse buttons. |
X | Gets the x-coordinate of the mouse pointer, in screen coordinates. |
Y | Gets the y-coordinate of the mouse pointer, in screen coordinates. |