# GrapeCity.Documents.Common.ListEx-2

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Common_ListEx_2" data-uid="GrapeCity.Documents.Common.ListEx`2" class="text-break">ListEx&lt;TItem, TItemInterface&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Represents a list that can be used as a read-only list
of interfaces supported by the list items.</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.generic.list-1">List</a>&lt;TItem&gt;</div>
    <div class="level2"><span class="xref">ListEx&lt;TItem, TItemInterface&gt;</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;TItem&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;TItem&gt;</div>
    <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.ireadonlylist-1">IReadOnlyList</a>&lt;TItem&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;TItem&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;TItem&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;TItemInterface&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;TItemInterface&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;TItemInterface&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Common.html">GrapeCity.Documents.Common</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.dll</h6>
  <h5 id="GrapeCity_Documents_Common_ListEx_2_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ListEx&lt;TItem, TItemInterface&gt; : List&lt;TItem&gt;, IList&lt;TItem&gt;, ICollection&lt;TItem&gt;, IList, ICollection, IReadOnlyList&lt;TItem&gt;, IReadOnlyCollection&lt;TItem&gt;, IEnumerable&lt;TItem&gt;, IReadOnlyList&lt;TItemInterface&gt;, IReadOnlyCollection&lt;TItemInterface&gt;, IEnumerable&lt;TItemInterface&gt;, IEnumerable where TItem : TItemInterface</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ListEx(Of TItem As TItemInterface, TItemInterface)
    Inherits List(Of TItem)
    Implements IList(Of TItem), ICollection(Of TItem), IList, ICollection, IReadOnlyList(Of TItem), IReadOnlyCollection(Of TItem), IEnumerable(Of TItem), IReadOnlyList(Of TItemInterface), IReadOnlyCollection(Of TItemInterface), IEnumerable(Of TItemInterface), IEnumerable</code></pre>
  </div>
  <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">TItem</span></td>
        <td><p>The type of items in the collection.</p>
</td>
      </tr>
      <tr>
        <td><span class="parametername">TItemInterface</span></td>
        <td><p>The interface supported by the items.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_Documents_Common_ListEx_2__ctor" data-uid="GrapeCity.Documents.Common.ListEx`2.#ctor">
          <a class="xref" href="GrapeCity.Documents.Common.ListEx-2.-ctor.html#GrapeCity_Documents_Common_ListEx_2__ctor">ListEx()</a>
        </td>
        <td class="markdown level1 summary"></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_Documents_Common_ListEx_2_Select__1_System_Func__0___0__" data-uid="GrapeCity.Documents.Common.ListEx`2.Select``1(System.Func{`0,``0})">
          <a class="xref" href="GrapeCity.Documents.Common.ListEx-2.Select.html#GrapeCity_Documents_Common_ListEx_2_Select__1_System_Func__0___0__">Select&lt;T&gt;(Func&lt;TItem, T&gt;)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
