The FileOrFolder
property of the Editor.DragData
class provides access to the first file or folder in the drag data. This property is useful when you need to quickly retrieve the primary item being dragged, without iterating through all items.
The FileOrFolder
property of the Editor.DragData
class provides access to the first file or folder in the drag data. This property is useful when you need to quickly retrieve the primary item being dragged, without iterating through all items.
To use the FileOrFolder
property, you must have an instance of the Editor.DragData
class. You can then access this property to get the first file or folder in the drag data.
// Assuming 'dragData' is an instance of Editor.DragData string firstFileOrFolder = dragData.FileOrFolder; if (!string.IsNullOrEmpty(firstFileOrFolder)) { // Use the file or folder path // For example, log it or open it }