Back to Devexpress

TdxSpreadSheetHistory.Undo(Integer) Method

vcl-dxspreadsheetcore-dot-tdxspreadsheethistory-dot-undo-x28-system-dot-integer-x29.md

latest2.0 KB
Original Source

TdxSpreadSheetHistory.Undo(Integer) Method

Reverses the effects of one or more actions made in the opened spreadsheet document.

Declaration

delphi
procedure Undo(const AUndoCount: Integer = 1);

Parameters

NameType
AUndoCountInteger

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

TdxSpreadSheetHistory.UndoActionCount

TdxSpreadSheetHistory Class

TdxSpreadSheetHistory Members

dxSpreadSheetCore Unit