This documentation is for the old version. Go to the latest Graphics Mill docs

Bitmap.CanUndo Property

Indicates if last bitmap modification can be undone.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Overridable ReadOnly Property CanUndo As Boolean
C#
public virtual bool CanUndo { get; }

Property Value

Value specifying if last bitmap modification can be undone.

Remarks

Graphics Mill for .NET has internal bitmap changes stack. If current position of this stack is a stack bottom, no actions to undo are available and this property returns false. If you try to call Undo() method, you will get an exception. If the current stack position is above of the stack bottom, this property returns true and you can call Undo() method to revert the bitmap state.

If undo/redo functionality is disabled (when UndoRedoEnabled is set to false), this property always returns false.

See Also

Reference