DropAction Ignore

robot_2Generated
code_blocksInput

Description

The Editor.DropAction.Ignore field is a member of the Editor.DropAction enumeration. It represents an action where the drop operation is ignored. This means that when a drag-and-drop event occurs, selecting this action will result in no changes or operations being performed on the data being dragged.

Usage

Use Editor.DropAction.Ignore when you want to explicitly specify that a drag-and-drop operation should not result in any action. This can be useful in scenarios where certain conditions are not met for a valid drop, or when you want to prevent any modifications or interactions with the dragged data.

Example

// Example of using Editor.DropAction.Ignore in a drag-and-drop handler

void HandleDropAction(Editor.DropAction action)
{
    switch (action)
    {
        case Editor.DropAction.Copy:
            // Handle copy action
            break;
        case Editor.DropAction.Move:
            // Handle move action
            break;
        case Editor.DropAction.Link:
            // Handle link action
            break;
        case Editor.DropAction.Ignore:
            // Ignore the drop action
            break;
        default:
            throw new ArgumentOutOfRangeException();
    }
}