TdxSpreadSheetHistory.Undo(Integer) Method
Reverses the effects of one or more actions made in the opened spreadsheet document.
Declaration
procedure Undo(const AUndoCount: Integer = 1);
Parameters
Name | Type |
---|---|
AUndoCount | Integer |
Remarks
Call the Undo
and Redo procedures to navigate back and forth between recorded document states. Pass a number of consecutive actions to undo as the AUndoCount
parameter. An Undo
procedure call moves recorded actions from undo to the redo action list.
The Ctrl+Z and Alt+Backspace key combinations roll back the last recorded action. You can link a custom UI element to the Undo command to provide an additional end-user option.
Note
Enclose the code that performs a large series of document changes between BeginAction and EndAction calls to reduce the number of recorded document states.
See Also