Skip to main content

TdxSpreadSheetHistory.MaxActionCount Property

Specifies the maximum number of history actions stored in the undo and redo lists.

Declaration

property MaxActionCount: Integer read; write;

Property Value

Type
Integer

Remarks

Every time the opened document’s content changes, the spreadsheet control records the corresponding history action to reflect the change. This can result in result in significant memory consumption in case of very large series of document changes, for instance, when you populate large cell ranges or customize their styles programmatically.

Assign a positive value to the MaxActionCount property to limit the maximum number of actions that a user can undo and redo. If this property is set to 0, the UndoActions and RedoActions lists have no maximum size limit.

Note

A spreadsheet control’s OptionsBehavior.HistoryMaxActionCount property maps to the MaxActionCount property.

The MaxActionCount property’s default value is 0.

See Also