---
title: "Bitmap..::.CanUndo Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_CanUndo.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# Bitmap.CanUndo Property 
 
Indicates if last bitmap modification can be undone.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Overridable ReadOnly Property CanUndo As Boolean
```
 
```csharp
public virtual bool CanUndo { get; }
```
 
### Property Value
Value specifying if last bitmap modification can be undone.
 
### Implements
 
[IStateNavigable.CanUndo](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_IStateNavigable_CanUndo.htm.md)
 
## 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()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Undo.htm.md) 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()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Undo.htm.md) method to revert the bitmap state.
 
If undo/redo functionality is disabled (when [UndoRedoEnabled](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_UndoRedoEnabled.htm.md) is set to **false**), this property always returns **false**.
   
## See Also

### Reference

- [Bitmap Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
- [Bitmap.UndoRedoEnabled](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_UndoRedoEnabled.htm.md)
- [Bitmap.CanRedo](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_CanRedo.htm.md)
- [Bitmap.Undo()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Undo.htm.md)
- [Bitmap.UndoStepCount](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_UndoStepCount.htm.md)
- [Bitmap.MaxUndoStepCount](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_MaxUndoStepCount.htm.md)
