robot_2Generated
code_blocksInput

Description

The Editor.DropAction.Move field is a member of the Editor.DropAction enumeration. It represents an action where the data involved in a drag-and-drop operation will be moved from its original location to the new location. This action is typically used in user interfaces to indicate that the item being dragged will be removed from its source and placed at the target location.

Usage

Use Editor.DropAction.Move when you want to specify that the data should be moved during a drag-and-drop operation. This is useful in scenarios where the original data should no longer exist in its initial location after the operation is completed.

Example

// Example of using Editor.DropAction.Move in a drag-and-drop operation

public void HandleDragDrop(DragEventArgs e)
{
    if (e.DropAction == Editor.DropAction.Move)
    {
        // Perform the move operation
        MoveData(e.Source, e.Target);
    }
}

private void MoveData(object source, object target)
{
    // Logic to move data from source to target
}