Skip to main content

TdxSpreadSheetHistory.Lock Method

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

Declaration

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