# GrapeCity.ActiveReports.Extensibility.Rendering.Components.ItemCollectionExtensions.ToItemCollection

## Content

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



<h1 id="GrapeCity_ActiveReports_Extensibility_Rendering_Components_ItemCollectionExtensions_ToItemCollection_" data-uid="GrapeCity.ActiveReports.Extensibility.Rendering.Components.ItemCollectionExtensions.ToItemCollection*">ToItemCollection Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Extensibility_Rendering_Components_ItemCollectionExtensions_ToItemCollection_" data-uid="GrapeCity.ActiveReports.Extensibility.Rendering.Components.ItemCollectionExtensions.ToItemCollection*"></a>
<h4 id="GrapeCity_ActiveReports_Extensibility_Rendering_Components_ItemCollectionExtensions_ToItemCollection__1_System_Collections_Generic_IList___0__" data-uid="GrapeCity.ActiveReports.Extensibility.Rendering.Components.ItemCollectionExtensions.ToItemCollection``1(System.Collections.Generic.IList{``0})">ToItemCollection&lt;T&gt;(IList&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Wraps the list to item 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 IItemCollection&lt;T&gt; ToItemCollection&lt;T&gt;(this IList&lt;T&gt; list)</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;T&gt;</td>
      <td><span class="parametername">list</span></td>
      <td><p>The list.</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><a class="xref" href="GrapeCity.ActiveReports.Extensibility.Rendering.Components.IItemCollection-1.html">IItemCollection</a>&lt;T&gt;</td>
      <td></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">T</span></td>
      <td><p>The items type.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_ActiveReports_Extensibility_Rendering_Components_ItemCollectionExtensions_ToItemCollection_" data-uid="GrapeCity.ActiveReports.Extensibility.Rendering.Components.ItemCollectionExtensions.ToItemCollection*"></a>
<h4 id="GrapeCity_ActiveReports_Extensibility_Rendering_Components_ItemCollectionExtensions_ToItemCollection__1_System_Collections_Generic_IEnumerable___0__" data-uid="GrapeCity.ActiveReports.Extensibility.Rendering.Components.ItemCollectionExtensions.ToItemCollection``1(System.Collections.Generic.IEnumerable{``0})">ToItemCollection&lt;T&gt;(IEnumerable&lt;T&gt;)</h4>
<div class="markdown level1 summary"><p>Wraps the list to item 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 IItemCollection&lt;T&gt; ToItemCollection&lt;T&gt;(this IEnumerable&lt;T&gt; seq)</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><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;</td>
      <td><span class="parametername">seq</span></td>
      <td><p>The seq.</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><a class="xref" href="GrapeCity.ActiveReports.Extensibility.Rendering.Components.IItemCollection-1.html">IItemCollection</a>&lt;T&gt;</td>
      <td></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">T</span></td>
      <td><p>The items type.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
