This enumeration is used by the following classes: System.Windows.Forms.DragEventArgs, System.Windows.Forms.GiveFeedbackEventArgs, and System.Windows.Forms.Control.
You can use System.Windows.Forms.DragDropEffects to display different mouse pointers for drag-and-drop operations. For example, you can display a plus symbol for a DragDropEffects.Copy drag-and-drop operation, an arrow symbol for a DragDropEffects.Move drag-and-drop operation, or a red circle with a line through it symbol for a DragDropEffects.None drag-and-drop operation.
If you want to drop data at a position in the target that is not currently visible, you could scroll the target while dragging. If a target does not support scrolling, you must make sure that the drop position is visible in the target before you begin the drag-and-drop operation. The following are some scenarios when you might want to scroll a target:
You are dragging text into a document, and you want to drop the text at a position not visible in the document window.
You are dragging a file into a file tree, and you want to drop the file on a node not visible in the file tree.
Member Name | Description |
---|---|
All |
The combination of the System.Windows.DragDropEffects.Copy, DragDropEffects.Move, and DragDropEffects.Scroll effects. |
Copy |
The data from the drag source is copied to the drop target. |
Link |
The data from the drag source is linked to the drop target. |
Move |
The data from the drag source is moved to the drop target. |
None |
The drop target does not accept the data. |
Scroll |
The target can be scrolled while dragging to locate a drop position that is not currently visible in the target. |