---
title: "Bitmap..::.UndoStepCount Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Bitmap_UndoStepCount.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.UndoStepCount Property 
 
Returns number of available undo levels (i.e. how much time method [Undo()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Undo.htm.md) can be called).
 
**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 UndoStepCount As Integer
```
 
```csharp
public virtual int UndoStepCount { get; }
```
 
### Property Value
Number of available undo steps (levels).
 
### Implements
 
[IStateNavigable.UndoStepCount](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_IStateNavigable_UndoStepCount.htm.md)
 
## Remarks
  
Graphics Mill for .NET has internal bitmap changes stack. This property return the distance from the current stack position to the stack bottom.
 
If you try to pass to [Undo(Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_Undo_1_e1836fc4.htm.md) method value which is larger than this property, exception will be raised.
   
## 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)
