---
title: "MultiLayerViewer..::.Undo Method (Int32)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_MultiLayerViewer_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/)

# MultiLayerViewer.Undo Method (Int32)
 
Undoes a specified number of the last actions.
 
**Namespace:** [Aurigma.GraphicsMill.WinControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.WinControls.VectorObjects (in Aurigma.GraphicsMill.WinControls.VectorObjects.dll)
 
## Syntax
  
```
Public Sub Undo ( _undoStepCount As Integer _
)
```
 
```csharp
public void Undo(int undoStepCount
)
```
 
### Parameters
 
 - undoStepCount
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
Number of steps to undo.
 
### Implements
 
[IStateNavigable.Undo(Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_IStateNavigable_Undo_1_e1836fc4.htm.md)
 
## Remarks
  
If the undoStepCount argument is larger than the number of steps available to undo, this method will fail. To avoid this, use the [UndoStepCount](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WinControls_MultiLayerViewer_UndoStepCount.htm.md) property to retrieve the number of available undo steps.
   
## See Also

### Reference

- [MultiLayerViewer Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_MultiLayerViewer.htm.md)
- [Undo Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_WinControls_MultiLayerViewer_Undo.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
