TdxSpreadSheetCopySelection Class
An action object that implements the CopySelection end-user command in Spreadsheet and Report Designer-based applications.
Declaration
TdxSpreadSheetCopySelection = class(
TdxSpreadSheetAction
)
Remarks
This class does not introduce any new public members. If an in-place editor is active, executing a TdxSpreadSheetCopySelection
action object copies its content selection to the clipboard. Otherwise, the current cell/cell range selection within the active Table View worksheet is copied to the clipboard.
If a cell range is selected, a TdxSpreadSheetCopySelection
action object calls the active Table View worksheet’s CopyToClipboard procedure for the current selection.
UI elements linked to a TdxSpreadSheetCopySelection
action object are enabled only if one of the following conditions is met:
- The active worksheet‘s CanCopyToClipboard function returns
True
. - An in-place cell editor is active (the active worksheet’s IsEditing property returns
True
).
Note
CutSelection
and PasteSelection
commands are implemented as TdxSpreadSheetCutSelection and TdxSpreadSheetPasteSelection objects.