System.Uri Url { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Url property of the Editor.DragData class provides access to the URL data associated with a drag and drop event, if any. This property returns a System.Uri object representing the URL.

Usage

Use the Url property to retrieve the URL data from a drag and drop event within the editor environment. This can be useful when you need to handle or process URLs that are part of the drag and drop operation.

Example

// Example of accessing the Url property from a DragData instance
Editor.DragData dragData = GetDragData(); // Assume this method retrieves the current drag data

if (dragData.Url != null)
{
    System.Uri url = dragData.Url;
    // Process the URL as needed
    Console.WriteLine($"Dragged URL: {url.AbsoluteUri}");
}
else
{
    Console.WriteLine("No URL data in the drag event.");
}