Skip to main content
A newer version of this page is available. .

DXDragEventArgs.Action Property

Gets or sets the drag-and-drop action (Copy, Move, etc.) to perform.

Namespace: DevExpress.Utils.DragDrop

Assembly: DevExpress.Utils.v19.2.dll

Declaration

public DragDropActions Action { get; set; }

Property Value

Type Description
DragDropActions

A DragDropActions enumeration value that specifies the drag-and-drop action (Copy, Move, etc.) to perform.

Available values:

Name Description
All

The combination of the Copy, Move, and Scroll actions.

The data from the source control is linked to the target control.

Copy

The data from the source control is copied to the target control.

Move

The data from the source control is moved to the target control.

Scroll

The target control is scrolled while dragging a node to a position that is not currently visible in the target control.

None

The target control does not accept data.

Remarks

The default action depends on the pressed modifier key. For instance, data is copied if the Ctrl key is pressed or moved if the Shift key is pressed. You can override the default action or set the property to None to cancel the action. If the action is set to None, the cursor automatically changes to the circle-backslash symbol.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Action property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also