Skip to main content

TdxSpreadSheetHistory.AddCommand(TdxSpreadSheetHistoryCustomCommand) Method

Records the specified change command.

Declaration

procedure AddCommand(ACommand: TdxSpreadSheetHistoryCustomCommand);

Parameters

Name Type
ACommand TdxSpreadSheetHistoryCustomCommand

Remarks

Call this procedure and pass a target change command as the ACommand parameter to record the command to the undo action list. The AddCommand procedure:

  • Appends the command to the last history action in the undo list if the specified command affects the same target as the commands in the last history action.

  • Records the command as a new history action.

An AddCommand procedure call has no effect if the history action lists are locked.

See Also