property Schedule.UndoRedoQueueLength as Long
Gets or sets the maximum number of Undo/Redo actions that may be stored to the control's queue.

TypeDescription
Long A Long expression that specifies the length of the Undo/Redo queue. If -1, the queue is unlimited, 0 allows no entries in the Undo/Redo queue (Undo/Redo is disabled).
By default, the UndoRedoQueueLength property is -1. The AllowUndoRedo property enables or disables the Undo/Redo feature. Use the UndoRedoQueueLength property to specify the number of entries that Undo/Redo queue may store. For instance, if the UndoRedoQueueLength property is 1, the control retains only the last chart operation. Changing the UndoRedoQueueLength property may change the current Undo/Redo queue based on the new length. The length being specified, does not affect the blocks in the queue. A block may hold multiple Undo/Redo actions. Use the GroupUndoRedoActions method to group two or more entries in the Undo/Redo queue in a single block, so when a next Undo/Redo operation is performed, multiple actions may occur. For instance, moving several calendar-events in the same time ( multiple calendar-events selection ) is already recorded as a single block.