---
title: "History..::.addLayerMoved Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_RedoUndo_History_addLayerMoved.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/)

# History.addLayerMoved Method 
 
Adds the [LayerMovedCommand](https://www.graphicsmill.com/docs/gm5/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_RedoUndo_LayerMovedCommand.htm.md) command to the history.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo](https://www.graphicsmill.com/docs/gm5/N_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_RedoUndo.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.dll)
 
## Syntax
  
```
function addLayerMoved(layer, oldIndex, newIndex);
```
 
### Parameters
 
 - layer
     - Type: [Aurigma.GraphicsMill.AjaxControls.VectorObjects.Layer](https://www.graphicsmill.com/docs/gm5/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Layer.htm.md)
The layer which was added.

 - oldIndex
     - Type: Global.Number
An old index of this layer.

 - newIndex
     - Type: Global.Number
A new index of this layer.
   
## See Also

### Reference

- [History Class](https://www.graphicsmill.com/docs/gm5/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_RedoUndo_History.htm.md)
- [Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo Namespace](https://www.graphicsmill.com/docs/gm5/N_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_RedoUndo.htm.md)
