string Text { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The Text property of the Editor.DragData class provides access to the text data associated with a drag and drop event. This property is useful when you need to retrieve or manipulate the textual content that is being dragged within the editor environment.

Usage

To use the Text property, you can access it directly from an instance of the Editor.DragData class. This property is read-write, allowing you to both retrieve the current text data and assign new text data to the drag event.

Example

// Example of accessing the Text property from a DragData instance
Editor.DragData dragData = new Editor.DragData();

// Retrieve the text data from the drag event
string draggedText = dragData.Text;

// Set new text data for the drag event
dragData.Text = "New text data for drag event";