# GrapeCity.ActiveReports.PageReportModel.LayerCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_ActiveReports_PageReportModel_LayerCollection" data-uid="GrapeCity.ActiveReports.PageReportModel.LayerCollection" class="text-break">LayerCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a strongly typed collection of <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Layer.html">Layer</a> objects.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.collectionbase">CollectionBase</a></div>
    <div class="level2"><span class="xref">LayerCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Layer.html">Layer</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Layer.html">Layer</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Layer.html">Layer</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
    <div><a class="xref" href="GrapeCity.ActiveReports.PageReportModel.IValidateable.html">IValidateable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.html">GrapeCity.ActiveReports.PageReportModel</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Core.Rdl.dll</h6>
  <h5 id="GrapeCity_ActiveReports_PageReportModel_LayerCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class LayerCollection : CollectionBase, IList, ICollection, IList&lt;Layer&gt;, ICollection&lt;Layer&gt;, IEnumerable&lt;Layer&gt;, IEnumerable, IValidateable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_LayerCollection__ctor_GrapeCity_ActiveReports_PageReportModel_Report_" data-uid="GrapeCity.ActiveReports.PageReportModel.LayerCollection.#ctor(GrapeCity.ActiveReports.PageReportModel.Report)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.-ctor.html#GrapeCity_ActiveReports_PageReportModel_LayerCollection__ctor_GrapeCity_ActiveReports_PageReportModel_Report_">LayerCollection(Report)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.html">LayerCollection</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_LayerCollection_DefaultLayer" data-uid="GrapeCity.ActiveReports.PageReportModel.LayerCollection.DefaultLayer">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.DefaultLayer.html#GrapeCity_ActiveReports_PageReportModel_LayerCollection_DefaultLayer">DefaultLayer</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the default <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Layer.html">Layer</a> in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_LayerCollection_IsReadOnly" data-uid="GrapeCity.ActiveReports.PageReportModel.LayerCollection.IsReadOnly">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.IsReadOnly.html#GrapeCity_ActiveReports_PageReportModel_LayerCollection_IsReadOnly">IsReadOnly</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.html">LayerCollection</a> is read-only.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_LayerCollection_Item_System_Int32_" data-uid="GrapeCity.ActiveReports.PageReportModel.LayerCollection.Item(System.Int32)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.Item.html#GrapeCity_ActiveReports_PageReportModel_LayerCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a specific <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Layer.html">Layer</a> object in the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.html">LayerCollection</a> by position.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_LayerCollection_Add_GrapeCity_ActiveReports_PageReportModel_Layer_" data-uid="GrapeCity.ActiveReports.PageReportModel.LayerCollection.Add(GrapeCity.ActiveReports.PageReportModel.Layer)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.Add.html#GrapeCity_ActiveReports_PageReportModel_LayerCollection_Add_GrapeCity_ActiveReports_PageReportModel_Layer_">Add(Layer)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Layer.html">Layer</a> object to the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.html">LayerCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_LayerCollection_Contains_GrapeCity_ActiveReports_PageReportModel_Layer_" data-uid="GrapeCity.ActiveReports.PageReportModel.LayerCollection.Contains(GrapeCity.ActiveReports.PageReportModel.Layer)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.Contains.html#GrapeCity_ActiveReports_PageReportModel_LayerCollection_Contains_GrapeCity_ActiveReports_PageReportModel_Layer_">Contains(Layer)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.html">LayerCollection</a> contains the specified <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Layer.html">Layer</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_LayerCollection_CopyTo_GrapeCity_ActiveReports_PageReportModel_Layer___System_Int32_" data-uid="GrapeCity.ActiveReports.PageReportModel.LayerCollection.CopyTo(GrapeCity.ActiveReports.PageReportModel.Layer[],System.Int32)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.CopyTo.html#GrapeCity_ActiveReports_PageReportModel_LayerCollection_CopyTo_GrapeCity_ActiveReports_PageReportModel_Layer___System_Int32_">CopyTo(Layer[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the objects in the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.html">LayerCollection</a> to a <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Layer.html">Layer</a> array, starting at the specified array index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_LayerCollection_GetEnumerator" data-uid="GrapeCity.ActiveReports.PageReportModel.LayerCollection.GetEnumerator">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.GetEnumerator.html#GrapeCity_ActiveReports_PageReportModel_LayerCollection_GetEnumerator">GetEnumerator()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an enumerator that iterates through the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.html">LayerCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_LayerCollection_IndexOf_GrapeCity_ActiveReports_PageReportModel_Layer_" data-uid="GrapeCity.ActiveReports.PageReportModel.LayerCollection.IndexOf(GrapeCity.ActiveReports.PageReportModel.Layer)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.IndexOf.html#GrapeCity_ActiveReports_PageReportModel_LayerCollection_IndexOf_GrapeCity_ActiveReports_PageReportModel_Layer_">IndexOf(Layer)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines the index of a specific <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Layer.html">Layer</a> object in the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.html">LayerCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_LayerCollection_Insert_System_Int32_GrapeCity_ActiveReports_PageReportModel_Layer_" data-uid="GrapeCity.ActiveReports.PageReportModel.LayerCollection.Insert(System.Int32,GrapeCity.ActiveReports.PageReportModel.Layer)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.Insert.html#GrapeCity_ActiveReports_PageReportModel_LayerCollection_Insert_System_Int32_GrapeCity_ActiveReports_PageReportModel_Layer_">Insert(int, Layer)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a new <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Layer.html">Layer</a> into the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.html">LayerCollection</a> at the specified location.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_LayerCollection_Remove_GrapeCity_ActiveReports_PageReportModel_Layer_" data-uid="GrapeCity.ActiveReports.PageReportModel.LayerCollection.Remove(GrapeCity.ActiveReports.PageReportModel.Layer)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.Remove.html#GrapeCity_ActiveReports_PageReportModel_LayerCollection_Remove_GrapeCity_ActiveReports_PageReportModel_Layer_">Remove(Layer)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the specified <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.Layer.html">Layer</a> object from the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.html">LayerCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_PageReportModel_LayerCollection_Validate_GrapeCity_ActiveReports_PageReportModel_ValidationContext_" data-uid="GrapeCity.ActiveReports.PageReportModel.LayerCollection.Validate(GrapeCity.ActiveReports.PageReportModel.ValidationContext)">
          <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.Validate.html#GrapeCity_ActiveReports_PageReportModel_LayerCollection_Validate_GrapeCity_ActiveReports_PageReportModel_ValidationContext_">Validate(ValidationContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates the current state of the <a class="xref" href="GrapeCity.ActiveReports.PageReportModel.LayerCollection.html">LayerCollection</a> object.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.Rdl.Tools.CollectionExtensions.AddRange.html#GrapeCity_ActiveReports_Rdl_Tools_CollectionExtensions_AddRange__2___0_System_Collections_Generic_IEnumerable___1__">CollectionExtensions.AddRange&lt;TCollection, TItem&gt;(TCollection, IEnumerable&lt;TItem&gt;)</a>
  </div>

</div>
