Description
The Editor.DropAction.Link
field is a member of the Editor.DropAction
enumeration. It represents a drag-and-drop action where the data will be linked rather than copied or moved. This action is typically used in scenarios where a reference to the original data is maintained, rather than creating a duplicate or transferring ownership.
Usage
Use Editor.DropAction.Link
when you want to indicate that the data being dragged will be linked to its original source upon dropping. This is useful in applications where maintaining a connection to the original data is necessary, such as creating shortcuts or symbolic links.
Example
// Example of using Editor.DropAction.Link in a drag-and-drop operation
void HandleDragDrop(DragEventArgs e)
{
if (e.DropAction == Editor.DropAction.Link)
{
// Handle the linking of data
LinkData(e.Data);
}
}
void LinkData(object data)
{
// Implementation for linking data
// This could involve creating a reference or a shortcut to the original data
}