property Chart.AllowUndoRedo as Boolean
Specifies whether the chart allows undo/redo operations.

   Boolean A Boolean expression that specifies whether the Undo/Redo operations are enabled or disabled.  
By default, the AllowUndoRedo property is False. Use the AllowUndoRedo property to add Undo/Redo support for operations in the chart. Setting the AllowUndoRedo property, clears the previously undo-redo queue. If the AllowUndoRedo property is True, the CTRL+Z performs the last undo operation, while the CTRL+Y redoes the next action in the chart's Redo queue. The CanUndo property retrieves a value that indicates whether the chart may perform the last Undo operation. The CanRedo property retrieves a value that specifies whether the chart can execute the next operation in the chart's Redo queue. Call the Undo method to Undo the last chart operation. The Redo redoes the next action in the chart's redo queue. The UndoRedoQueueLength property gets or sets the maximum number of Undo/Redo actions that may be stored to the chart's queue, or in other words how many operations the chart's Undo/Redo manager may store. 

The Undo/Redo manager of the chart records the following operations:

The ChartStartChanging(exUndo/exRedo) / ChartEndChanging(exUndo/exRedo) event notifies your application whenever an Undo/Redo operation is performed. The UndoListAction property lists the Undo actions that can be performed in the chart. The RedoListAction property lists the Redo actions that can be performed in the chart. Use the UndoRemoveAction method to remove the last actions from the undo queue. The RedoRemoveAction method removes the first action to be performed if the Redo method is invoked.

Send comments on this topic.
1999-2017 Exontrol.COM, Software. All rights reserved.