---
title: "Class LayerCollection | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Canvas/LayerCollection/"
---

# Class LayerCollection

> **Inheritance:** `System.Object` -> `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>` -> `Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Canvas.Layer>` -> `Aurigma.DesignAtoms.Canvas.Collection.SelectableCollection<Aurigma.DesignAtoms.Canvas.Layer>` -> LayerCollection

###### **Namespace**: [Aurigma.DesignAtoms.Canvas](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Canvas.md)

###### **Assembly**: Aurigma.DesignAtoms.dll

```csharp title="Syntax"
public class LayerCollection : SelectableCollection<Layer>, IList<Layer>, ICollection<Layer>, IList, ICollection, IReadOnlyList<Layer>, IReadOnlyCollection<Layer>, IEnumerable<Layer>, IEnumerable
```

## Implements

* `System.Collections.Generic.IList<Aurigma.DesignAtoms.Canvas.Layer>`
* `System.Collections.Generic.ICollection<Aurigma.DesignAtoms.Canvas.Layer>`
* `System.Collections.IList`
* `System.Collections.ICollection`
* `System.Collections.Generic.IReadOnlyList<Aurigma.DesignAtoms.Canvas.Layer>`
* `System.Collections.Generic.IReadOnlyCollection<Aurigma.DesignAtoms.Canvas.Layer>`
* `System.Collections.Generic.IEnumerable<Aurigma.DesignAtoms.Canvas.Layer>`
* `System.Collections.IEnumerable`

## Inherited Members

* `Aurigma.DesignAtoms.Canvas.Collection.SelectableCollection<Aurigma.DesignAtoms.Canvas.Layer>.OnSelectedIndexChanged(System.Int32,System.Int32)`
* `Aurigma.DesignAtoms.Canvas.Collection.SelectableCollection<Aurigma.DesignAtoms.Canvas.Layer>.Move(System.Int32,System.Int32)`
* `Aurigma.DesignAtoms.Canvas.Collection.SelectableCollection<Aurigma.DesignAtoms.Canvas.Layer>.RemoveItem(System.Int32)`
* `Aurigma.DesignAtoms.Canvas.Collection.SelectableCollection<Aurigma.DesignAtoms.Canvas.Layer>.SelectedItem`
* `Aurigma.DesignAtoms.Canvas.Collection.SelectableCollection<Aurigma.DesignAtoms.Canvas.Layer>.SelectedIndex`
* `Aurigma.DesignAtoms.Canvas.Collection.SelectableCollection<Aurigma.DesignAtoms.Canvas.Layer>.SelectedIndexChanged`
* `Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Canvas.Layer>.AddRange(System.Collections.Generic.IEnumerable<Aurigma.DesignAtoms.Canvas.Layer>)`
* `Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Canvas.Layer>.OnCollectionCleared(Aurigma.DesignAtoms.Canvas.Layer[])`
* `Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Canvas.Layer>.SetItem(System.Int32,Aurigma.DesignAtoms.Canvas.Layer)`
* `Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Canvas.Layer>.OnItemMoved(System.Int32,System.Int32,Aurigma.DesignAtoms.Canvas.Layer)`
* `Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Canvas.Layer>.Item(System.Int32)`
* `Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Canvas.Layer>.ItemAdded`
* `Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Canvas.Layer>.ItemRemoved`
* `Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Canvas.Layer>.ItemMoved`
* `Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Canvas.Layer>.CollectionCleared`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.Add(Aurigma.DesignAtoms.Canvas.Layer)`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.Clear`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.CopyTo(Aurigma.DesignAtoms.Canvas.Layer[],System.Int32)`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.Contains(Aurigma.DesignAtoms.Canvas.Layer)`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.GetEnumerator`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.IndexOf(Aurigma.DesignAtoms.Canvas.Layer)`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.Insert(System.Int32,Aurigma.DesignAtoms.Canvas.Layer)`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.Remove(Aurigma.DesignAtoms.Canvas.Layer)`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.RemoveAt(System.Int32)`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.System#Collections#IEnumerable#GetEnumerator`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.System#Collections#ICollection#CopyTo(System.Array,System.Int32)`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.System#Collections#IList#get_Item(System.Int32)`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.System#Collections#IList#set_Item(System.Int32,System.Object)`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.System#Collections#IList#Add(System.Object)`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.System#Collections#IList#Contains(System.Object)`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.System#Collections#IList#IndexOf(System.Object)`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.System#Collections#IList#Insert(System.Int32,System.Object)`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.System#Collections#IList#Remove(System.Object)`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.Count`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.Items`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.System#Collections#Generic#ICollection<T>#IsReadOnly`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.System#Collections#ICollection#IsSynchronized`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.System#Collections#ICollection#SyncRoot`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.System#Collections#IList#Item(System.Int32)`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.System#Collections#IList#IsReadOnly`
* `System.Collections.ObjectModel.Collection<Aurigma.DesignAtoms.Canvas.Layer>.System#Collections#IList#IsFixedSize`
* `System.Object.ToString`
* `System.Object.Equals(System.Object)`
* `System.Object.Equals(System.Object,System.Object)`
* `System.Object.ReferenceEquals(System.Object,System.Object)`
* `System.Object.GetHashCode`
* `System.Object.GetType`
* `System.Object.MemberwiseClone`

## Properties

### Canvas

```csharp
public ICanvas Canvas { get; }
```

## Methods

### GetLayersByName

```csharp
public Layer[] GetLayersByName(string name)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *name* |  |

##### Returns

`Aurigma.DesignAtoms.Canvas.Layer[]`

### GetByName

```csharp
public Layer GetByName(string name)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *name* |  |

##### Returns

[Aurigma.DesignAtoms.Canvas.Layer](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Canvas/Layer.md)

### GetByName

```csharp
public Layer GetByName(string name, int startIndex)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *name* |  |
| `System.Int32` | *startIndex* |  |

##### Returns

[Aurigma.DesignAtoms.Canvas.Layer](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Canvas/Layer.md)

### GetItemHandlersByName

```csharp
public ItemHandler[] GetItemHandlersByName(string name)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.String` | *name* |  |

##### Returns

`Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler[]`

### ClearItems

```csharp
protected override void ClearItems()
```

##### Overrides

* `Aurigma.DesignAtoms.Canvas.Collection.SelectableCollection<Aurigma.DesignAtoms.Canvas.Layer>.ClearItems`

### InsertItem

```csharp
protected override void InsertItem(int index, Layer item)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Int32` | *index* |  |
| [Aurigma.DesignAtoms.Canvas.Layer](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Canvas/Layer.md) | *item* |  |

##### Overrides

* `Aurigma.DesignAtoms.Canvas.Collection.SelectableCollection<Aurigma.DesignAtoms.Canvas.Layer>.InsertItem(System.Int32,Aurigma.DesignAtoms.Canvas.Layer)`

### OnItemAdded

```csharp
protected override void OnItemAdded(int index, Layer item)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Int32` | *index* |  |
| [Aurigma.DesignAtoms.Canvas.Layer](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Canvas/Layer.md) | *item* |  |

##### Overrides

* `Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Canvas.Layer>.OnItemAdded(System.Int32,Aurigma.DesignAtoms.Canvas.Layer)`

### OnItemRemoved

```csharp
protected override void OnItemRemoved(int index, Layer item)
```

##### Parameters

| Type | Name | Description |
|:---|:---|:---|
| `System.Int32` | *index* |  |
| [Aurigma.DesignAtoms.Canvas.Layer](https://customerscanvas.com/docs/on-premises/design-atoms-cs/reference/api/Aurigma.DesignAtoms.Canvas/Layer.md) | *item* |  |

##### Overrides

* `Aurigma.DesignAtoms.Canvas.Collection.Collection<Aurigma.DesignAtoms.Canvas.Layer>.OnItemRemoved(System.Int32,Aurigma.DesignAtoms.Canvas.Layer)`
