Enables or disables undo/redo functionality.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Overridable Property UndoRedoEnabled As Boolean
public virtual bool UndoRedoEnabled { get; set; }
You can use this property to disable undo/redo functionality for some time. It is useful when, for example, you apply some set of effects or draw a number of shapes as single atomic operation. In this case you likely do not want to undo sub-operations, but need to undo entire operation at once. For example, you draw a star (with several calls of DrawLine(Pen, Int32, Int32, Int32, Int32) method). Your actions should be the following:
After this you can call Undo() method and entire star is erased instead of single line you draw last time.
By default this property is true.