# GrapeCity.Documents.Common.ReadOnlyListWrapper-2

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Common_ReadOnlyListWrapper_2" data-uid="GrapeCity.Documents.Common.ReadOnlyListWrapper`2" class="text-break">ReadOnlyListWrapper&lt;TItem, TWrapperItem&gt; Class
</h1>
  <div class="markdown level0 summary"><p>The read-only list wrapper around the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList&lt;T&gt;</a>.</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"><span class="xref">ReadOnlyListWrapper&lt;TItem, TWrapperItem&gt;</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;TWrapperItem&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;TWrapperItem&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;TWrapperItem&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_ReadOnlyListWrapper_2_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ReadOnlyListWrapper&lt;TItem, TWrapperItem&gt; : IReadOnlyList&lt;TWrapperItem&gt;, IReadOnlyCollection&lt;TWrapperItem&gt;, IEnumerable&lt;TWrapperItem&gt;, IEnumerable where TItem : class where TWrapperItem : class, TItem</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ReadOnlyListWrapper(Of TItem As Class, TWrapperItem As {Class, TItem})
    Implements IReadOnlyList(Of TWrapperItem), IReadOnlyCollection(Of TWrapperItem), IEnumerable(Of TWrapperItem), 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 item type of the underlying list.</p>
</td>
      </tr>
      <tr>
        <td><span class="parametername">TWrapperItem</span></td>
        <td><p>The item type.</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_Documents_Common_ReadOnlyListWrapper_2_Count" data-uid="GrapeCity.Documents.Common.ReadOnlyListWrapper`2.Count">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyListWrapper-2.Count.html#GrapeCity_Documents_Common_ReadOnlyListWrapper_2_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of elements contained in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyListWrapper_2_Item_System_Int32_" data-uid="GrapeCity.Documents.Common.ReadOnlyListWrapper`2.Item(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyListWrapper-2.Item.html#GrapeCity_Documents_Common_ReadOnlyListWrapper_2_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the element at the specified index.</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_Documents_Common_ReadOnlyListWrapper_2_Contains__1_" data-uid="GrapeCity.Documents.Common.ReadOnlyListWrapper`2.Contains(`1)">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyListWrapper-2.Contains.html#GrapeCity_Documents_Common_ReadOnlyListWrapper_2_Contains__1_">Contains(TWrapperItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether an element is in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyListWrapper_2_CopyTo__0___System_Int32_" data-uid="GrapeCity.Documents.Common.ReadOnlyListWrapper`2.CopyTo(`0[],System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyListWrapper-2.CopyTo.html#GrapeCity_Documents_Common_ReadOnlyListWrapper_2_CopyTo__0___System_Int32_">CopyTo(TItem[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyListWrapper_2_IndexOf__1_" data-uid="GrapeCity.Documents.Common.ReadOnlyListWrapper`2.IndexOf(`1)">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyListWrapper-2.IndexOf.html#GrapeCity_Documents_Common_ReadOnlyListWrapper_2_IndexOf__1_">IndexOf(TWrapperItem)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for the specified object and returns the zero-based index of the first occurrence within the entire collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
