TCustomStringGrid.CopyToClipboard procedure
Copies the current Selection range to the clipboard.
Declaration
procedure CopyToClipboard(AUseSelection: Boolean=False)Description
CopyToClipboard will copy a range of cells into the clipboard. The
cell values are stored in a Tab-delimited format. The cell selection range is
based on the optional
AUseSelection parameter (which is
False by default) and indicates the range is set to the whole grid,
including fixed columns and rows. If
AUseSelection is
True,
the range of cells is set to the current values in the
Selection property.
TCustomStringGrid provides run-time support for pasting cell values from the
clipboard, but is limited to a single selection range. Pasting
multi-selections is problematic since the ranges can represent non-adjacent
cell areas. For this reason, a PasteFromClipboard method is not implemented
in TCustomStringGrid. No actions are performed when Ctrl+V is pressed and
HasMultiSelection returns True.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
