Clipboard.clearContents

If this clipboard is currently the owner of the data on the system clipboard, clear the contents. If this clipboard is not the owner, then nothing is done. Note that there are clipboard assistant applications that take ownership of data or make copies of data when it is placed on the clipboard. In these cases, it may not be possible to clear the clipboard.

@exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>

@since 3.1

  1. void clearContents()
    class Clipboard
    void
    clearContents
    (
    )
  2. void clearContents(int clipboards)

Meta