Clipboard.clearContents

If this clipboard is currently the owner of the data on the specified clipboard, clear the contents. If this clipboard is not the owner, then nothing is done.

<p>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.</p>

<p>The clipboards value is either one of the clipboard constants defined in class <code>DND</code>, or must be built by <em>bitwise OR</em>'ing together (that is, using the <code>int</code> "|" operator) two or more of those <code>DND</code> clipboard constants.</p>

@param clipboards to be cleared

@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>

@see DND#CLIPBOARD @see DND#SELECTION_CLIPBOARD

@since 3.1

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

Meta