---
title: "LayerCollection..::.Remove Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_AjaxControls_VectorObjects_LayerCollection_Remove_1_5ff5edac.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.Remove Method 
 
Removes the first occurrence of a specified [Layer](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Layer.htm.md) from the collection.
 
**Namespace:** [Aurigma.GraphicsMill.AjaxControls.VectorObjects](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls.VectorObjects (in Aurigma.GraphicsMill.AjaxControls.VectorObjects.dll)
 
## Syntax
  
```
Public Overrides Function Remove ( _item As Layer _
) As Boolean
```
 
```csharp
public override bool Remove(Layer item
)
```
 
### Parameters
 
 - item
     - Type: [Aurigma.GraphicsMill.AjaxControls.VectorObjects.Layer](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Layer.htm.md)
The layer to remove.
 
### Return Value
 
The [Boolean](http://msdn2.microsoft.com/en-us/a28wyd50) value which indicated whether the layer was successfully removed from the collection. This method also returns **false** if the layer is not found in the collection.
 
### Implements
 
[ICollection&lt;T&gt;.Remove(T)](http://msdn2.microsoft.com/en-us/bye7h94w)
   
## See Also

### Reference

- [LayerCollection Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_AjaxControls_VectorObjects_LayerCollection.htm.md)
- [Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
