Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

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