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.Lock Method

In This Article

Protects the history action lists from changes until an Unlock procedure call.

#Declaration

Delphi
procedure Lock;

#Remarks

Call this procedure to protect history actions stored in the undo and redo lists. A spreadsheet control cannot record new history actions and clear the redo list while the history is locked. You still can call Undo and Redo procedures to navigate between recorded document states.

Note

The CanAddCommand function returns False if the action history is locked or disabled. Call the Unlock procedure to clear the RedoActions list and allow the spreadsheet control to record new history actions.

See Also