---
title: "LayerCollection Methods "
canonical: https://www.graphicsmill.com/docs/gmwc/Methods_T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_LayerCollection.htm
archived: true
applies_to:
  - product: "Graphics Mill Web Controls"
---

**You’re viewing documentation for an outdated product.** Graphics Mill Web Controls is no longer part of Graphics Mill. For current design editing and rendering tools, see [Design Atoms .NET](https://customerscanvas.com/docs/on-premises/design-atoms-cs/), [Design Atoms JS](https://customerscanvas.com/docs/on-premises/design-atoms-js/), and [Design Editor](https://customerscanvas.com/docs/on-premises/design-editor/).

# LayerCollection Methods 

**Applies to:** Graphics Mill Web Controls · **Archived documentation**
 
The [LayerCollection](https://www.graphicsmill.com/docs/gmwc/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_LayerCollection.htm.md) type exposes the following members.
 
## Methods

|   |  Name |  Description |
| --- | --- | --- |
 |  ![Public method](https://www.graphicsmill.com/docs/gmwc/icons/pubmethod.gif) |  [addRange](https://www.graphicsmill.com/docs/gmwc/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection_addRange.htm.md) |  Adds the specified items to the end of the collection.<br> (Inherited from [Collection](https://www.graphicsmill.com/docs/gmwc/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection.htm.md).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gmwc/icons/pubmethod.gif) |  [clear](https://www.graphicsmill.com/docs/gmwc/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_LayerCollection_clear.htm.md) |  Removes all layers from the collection. |
 |  ![Public method](https://www.graphicsmill.com/docs/gmwc/icons/pubmethod.gif) |  [contains](https://www.graphicsmill.com/docs/gmwc/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection_contains.htm.md) |  Determines whether the specified item is in the collection.<br> (Inherited from [Collection](https://www.graphicsmill.com/docs/gmwc/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection.htm.md).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gmwc/icons/pubmethod.gif) |  [getLayerById](https://www.graphicsmill.com/docs/gmwc/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_LayerCollection_getLayerById.htm.md) |   |
 |  ![Public method](https://www.graphicsmill.com/docs/gmwc/icons/pubmethod.gif) |  [getLayersByName](https://www.graphicsmill.com/docs/gmwc/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_LayerCollection_getLayersByName.htm.md) |  Search layers with the specified name. |
 |  ![Public method](https://www.graphicsmill.com/docs/gmwc/icons/pubmethod.gif) |  [getVObjectsByName](https://www.graphicsmill.com/docs/gmwc/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_LayerCollection_getVObjectsByName.htm.md) |  Search v-objects with the specified name. |
 |  ![Public method](https://www.graphicsmill.com/docs/gmwc/icons/pubmethod.gif) |  [indexOf](https://www.graphicsmill.com/docs/gmwc/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection_indexOf.htm.md) |  Searches for the specified item and returns the zero-based index of the first occurrence within the entire collection.<br> (Inherited from [Collection](https://www.graphicsmill.com/docs/gmwc/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection.htm.md).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gmwc/icons/pubmethod.gif) |  [insert](https://www.graphicsmill.com/docs/gmwc/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_LayerCollection_insert.htm.md) |  Inserts a layer into the collection at the specified index. |
 |  ![Public method](https://www.graphicsmill.com/docs/gmwc/icons/pubmethod.gif) |  [move](https://www.graphicsmill.com/docs/gmwc/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_LayerCollection_move.htm.md) |  Moves a layer from one position to another. |
 |  ![Public method](https://www.graphicsmill.com/docs/gmwc/icons/pubmethod.gif) |  [push](https://www.graphicsmill.com/docs/gmwc/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection_push.htm.md) |  Pushes the specified item to the collection.<br> (Inherited from [Collection](https://www.graphicsmill.com/docs/gmwc/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection.htm.md).) |
 |  ![Public method](https://www.graphicsmill.com/docs/gmwc/icons/pubmethod.gif) |  [removeAt](https://www.graphicsmill.com/docs/gmwc/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_LayerCollection_removeAt.htm.md) |  Removes the layer at the specified index of the collection. |
 |  ![Public method](https://www.graphicsmill.com/docs/gmwc/icons/pubmethod.gif) |  [toArray](https://www.graphicsmill.com/docs/gmwc/M_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection_toArray.htm.md) |  (Inherited from [Collection](https://www.graphicsmill.com/docs/gmwc/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_Collection.htm.md).) |
   
## See Also

### Reference

- [LayerCollection Class](https://www.graphicsmill.com/docs/gmwc/T_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects_LayerCollection.htm.md)
- [Aurigma.GraphicsMill.AjaxControls.VectorObjects Namespace](https://www.graphicsmill.com/docs/gmwc/N_J_Aurigma_GraphicsMill_AjaxControls_VectorObjects.htm.md)
