I’m trying to figure out how to get styled text from the clipboard so that I can set it into a text area.
Anyone know how to do this?
I’m trying to figure out how to get styled text from the clipboard so that I can set it into a text area.
Anyone know how to do this?
Const kRTF As String = "public.rtf"
Var cb As New Clipboard
' Check Clipboard for RTF content
If cb.RawDataAvailable(kRTF) Then
' Paste RTF content from Clipboard
TextArea1.StyledText.RTFData = cb.RawData(kRTF)
Else
' No RTF content at the Clipboard.
TextArea1.Text = "No RTF data available."
End If
cb.Close
Isn’t that for WIndows ?
Well, doesn’t the textarea have a Paste method for this?
I think this is what I’m looking for.
Thank you.
Not with a type like public.rtf
. That’s clearly an Apple Uniform Type Identifier.