Clipboard.RawData
From Xojo Documentation
Method
Method
Used to get and set binary data from/to the Clipboard as a string for the specified type or UTI.
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. An example would be "public.rtf".
On Windows you can use the a special DataType called "HTML Format" to add or fetch HTML data from the clipboard.
Sample Code
This code reads the contents of the Clipbpoard as an mp3 file.
On Windows, this code gets HTML data from the Clipboard:
The following code places the contents of TextArea1 on the Clipboard. It contains RTF text: