---
title: "History..::.AddLayerAdded Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_AjaxControls_VectorObjects_RedoUndo_History_AddLayerAdded_2_a8c2dd5b.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.AddLayerAdded Method 
 
Adds the layer added command to the history.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls_VectorObjects_RedoUndo.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.VectorObjects.dll)
 
## Syntax
  
```
Public Sub AddLayerAdded ( _layer As Layer, _index As Integer _
)
```
 
```csharp
public void AddLayerAdded(Layer layer,int index
)
```
 
### Parameters
 
 - layer
     - Type: [Aurigma.GraphicsMill.AjaxControls.VectorObjects.Layer](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Layer.htm.md)
The layer which was added.

 - index
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
An index of this layer.
   
## See Also

### Reference

- [History Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_RedoUndo_History.htm.md)
- [Aurigma.GraphicsMill.AjaxControls.VectorObjects.RedoUndo Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls_VectorObjects_RedoUndo.htm.md)
