# GrapeCity.ActiveReports.Rdl.Tools.CollectionExtensions.AddRange

## Content

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



<h1 id="GrapeCity_ActiveReports_Rdl_Tools_CollectionExtensions_AddRange_" data-uid="GrapeCity.ActiveReports.Rdl.Tools.CollectionExtensions.AddRange*">AddRange Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Rdl_Tools_CollectionExtensions_AddRange_" data-uid="GrapeCity.ActiveReports.Rdl.Tools.CollectionExtensions.AddRange*"></a>
<h4 id="GrapeCity_ActiveReports_Rdl_Tools_CollectionExtensions_AddRange__2___0_System_Collections_Generic_IEnumerable___1__" data-uid="GrapeCity.ActiveReports.Rdl.Tools.CollectionExtensions.AddRange``2(``0,System.Collections.Generic.IEnumerable{``1})">AddRange&lt;TCollection, TItem&gt;(TCollection, IEnumerable&lt;TItem&gt;)</h4>
<div class="markdown level1 summary"><p>Adds a range of items to the specified collection.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static TCollection AddRange&lt;TCollection, TItem&gt;(this TCollection collection, IEnumerable&lt;TItem&gt; items) where TCollection : ICollection&lt;TItem&gt;</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">TCollection</span></td>
      <td><span class="parametername">collection</span></td>
      <td><p>The collection to add items to.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;TItem&gt;</td>
      <td><span class="parametername">items</span></td>
      <td><p>The items to add to the collection.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="xref">TCollection</span></td>
      <td><p>A collection with the items added.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="typeParameters">Type Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><span class="parametername">TCollection</span></td>
      <td><p>The type of the collection.</p>
</td>
    </tr>
    <tr>
      <td><span class="parametername">TItem</span></td>
      <td><p>The type of the items in the collection.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
