StyledText.copy

Copies the selected text to the specified clipboard. The text will be put in the clipboard in plain text format and RTF format. <p> The clipboardType is one of the clipboard constants defined in class <code>DND</code>. The <code>DND.CLIPBOARD</code> clipboard is used for data that is transferred by keyboard accelerator (such as Ctrl+C/Ctrl+V) or by menu action. The <code>DND.SELECTION_CLIPBOARD</code> clipboard is used for data that is transferred by selecting text and pasting with the middle mouse button. </p>

@param clipboardType indicates the type of 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 copy()
  2. void copy(int clipboardType)
    class StyledText
    void
    copy

Meta