---
title: "IStateNavigable..::.Undo Method (Int32)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_IStateNavigable_Undo_1_e1836fc4.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/)

# IStateNavigable.Undo Method (Int32)
 
Undoes specified number of last changes.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Sub Undo ( _steps As Integer _
)
```
 
```csharp
void Undo(int steps
)
```
 
### Parameters
 
 - steps
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Number of steps to undo.
 
## Remarks
 If *steps* argument is larger than number of steps available to undo, method will fail. To avoid this, use [UndoStepCount](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_IStateNavigable_UndoStepCount.htm.md) property to check how much steps are left.
   
## See Also

### Reference

- [IStateNavigable Interface](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_IStateNavigable.htm.md)
- [Undo Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_IStateNavigable_Undo.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
