System.Windows.Forms.DragDropEffects Enumeration

Specifies the possible effects of a drag-and-drop operation.

Syntax

[System.Flags]
public enum DragDropEffects

Remarks

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:

Members

Member NameDescription
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.

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.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0