DragItem.RawDataAvailable

From Xojo Documentation

Read-Only Property (As Boolean )
BooleanValue = aDragItem.RawDataAvailable(DataType as String)

Supported for all project types and targets.

If True, the DragItem contains data of the type or UTI specified.

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