---
title: "LayerCollection..::.Add Method (Layer)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_LayerCollection_Add_1_8cbd92ad.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/)

# LayerCollection.Add Method (Layer)
 
Adds a layer to the end of the collection.
 
**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 Function Add ( _layer As Layer _
) As Integer
```
 
```csharp
public int Add(Layer layer
)
```
 
### Parameters
 
 - layer
     - Type: [Aurigma.GraphicsMill.WinControls.Layer](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_Layer.htm.md)
A layer to be added. Cannot be a null reference.
 
### Return Value
The index at which the layer has been added.
 
## Remarks
  
Newly added layer will be the topmost in the control.
   
## See Also

### Reference

- [LayerCollection Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_LayerCollection.htm.md)
- [Add Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_WinControls_LayerCollection_Add.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
