DragItem.RawData

From Xojo Documentation

Property (As String )
aDragItem.RawData(DataType as String) = newStringValue
or
StringValue = aDragItem.RawData(DataType as String)

Supported for all project types and targets.

Contains the raw data being dragged.

Notes

The DataType parameter supports both the older MacType and newer UTIs. If the DataType parameter is exactly 4 bytes then it is treated as a MacType for backwards compatibility. Otherwise it is treated as a UTI.

Sample Code

Checks if text data is in a a drag item:

If dragObject.RawDataAvailable("public.text") Then
Me.Text = dragObject.RawData("public.text") // UTI
End If