---
title: "LayerCollection..::.Clear Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_WinControls_LayerCollection_Clear.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.Clear Method 
 
Removes all layers from 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 Sub Clear
```
 
```csharp
public void Clear()
```
 
### Implements
 
[IList.Clear()](http://msdn2.microsoft.com/en-us/5h6ak0yz)
 
## Remarks
  
This method sets the [Count](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_WinControls_LayerCollection_Count.htm.md) value to zero.
   
## See Also

### Reference

- [LayerCollection Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_LayerCollection.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
