Skip to main content

TdxSpreadSheetTableView.CopyToClipboard Method

Copies the current selection to the clipboard.

Declaration

procedure CopyToClipboard; virtual;

Remarks

Call this procedure to copy a selected cell range or floating container to the clipboard. Depending on the current selection, the CopyToClipboard procedure copies:

  • A cell range; the cell data is available in all clipboard data formats supported by the Spreadsheet and Report Designer controls.

  • A floating container; the container is then available in the ExpressSpreadSheet internal binary clipboard format and as a bitmap.

End-users can copy the cell or container selection to the clipboard by:

  • Clicking the “Copy” item in the selection context menu.

  • Pressing the Ctrl+C or Ctrl+Insert key combination.

You can provide an additional end-user option for copying the active worksheet‘s content by linking the CopySelection command to an element of your UI either manually or by using the automatic Ribbon or Toolbar UI generation functionality.

Refer to the Clipboard Operations topic for detailed information on the Spreadsheet/Report Designer control’s clipboard-related functionality, including the full list of supported clipboard data formats, current technical limitations, end-user options, and Paste Special settings.

Note

Calling the CopyToClipboard procedure has no effect if the CanCopyToClipboard function returns False.

See Also