# GrapeCity.Documents.Common.ReadOnlyStructList-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Common_ReadOnlyStructList_1" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1" class="text-break">ReadOnlyStructList&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Represents a strongly typed read-only list of structs that can be effectively accessed by index.</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">ReadOnlyStructList&lt;T&gt;</span></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_ReadOnlyStructList_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ReadOnlyStructList&lt;T&gt; where T : struct</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ReadOnlyStructList(Of T As Structure)</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">T</span></td>
        <td><p>The type of structs in the list.</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_ReadOnlyStructList_1__ctor_GrapeCity_Documents_Common_StructList__0__" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.#ctor(GrapeCity.Documents.Common.StructList{`0})">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.-ctor.html#GrapeCity_Documents_Common_ReadOnlyStructList_1__ctor_GrapeCity_Documents_Common_StructList__0__">ReadOnlyStructList(StructList&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a> class from a given instance of <a class="xref" href="GrapeCity.Documents.Common.StructList-1.html">StructList&lt;T&gt;</a>.</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_ReadOnlyStructList_1_Count" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.Count">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.Count.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of elements actually contained in the <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyStructList_1_Item_System_Int32_" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.Item(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.Item.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a reference to the struct at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyStructList_1_SyncRoot" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.SyncRoot">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.SyncRoot.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_SyncRoot">SyncRoot</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an object that can be used to synchronize access to the <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a>.</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_ReadOnlyStructList_1_BinarySearch_System_Int32_System_Int32__0__GrapeCity_Documents_Common_IStructComparer__0__" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.BinarySearch(System.Int32,System.Int32,`0@,GrapeCity.Documents.Common.IStructComparer{`0})">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.BinarySearch.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_BinarySearch_System_Int32_System_Int32__0__GrapeCity_Documents_Common_IStructComparer__0__">BinarySearch(int, int, in T, IStructComparer&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches a range of elements in the sorted <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a> for an element using the specified comparer and returns the zero-based index of the element.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyStructList_1_BinarySearch_System_Int32_System_Int32__0__GrapeCity_Documents_Common_StructComparison__0__" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.BinarySearch(System.Int32,System.Int32,`0@,GrapeCity.Documents.Common.StructComparison{`0})">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.BinarySearch.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_BinarySearch_System_Int32_System_Int32__0__GrapeCity_Documents_Common_StructComparison__0__">BinarySearch(int, int, in T, StructComparison&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches a range of elements in the sorted <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a> for an element using the specified <a class="xref" href="GrapeCity.Documents.Common.StructComparison-1.html">StructComparison&lt;T&gt;</a> and returns the zero-based index of the element.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyStructList_1_ConvertAll__1_GrapeCity_Documents_Common_StructConverter__0___0__" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.ConvertAll``1(GrapeCity.Documents.Common.StructConverter{`0,``0})">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.ConvertAll.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_ConvertAll__1_GrapeCity_Documents_Common_StructConverter__0___0__">ConvertAll&lt;TOutput&gt;(StructConverter&lt;T, TOutput&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the elements in the current <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a> to another type, and returns a list containing the converted elements.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyStructList_1_CopyTo_System_Int32__0___System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.CopyTo(System.Int32,`0[],System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.CopyTo.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_CopyTo_System_Int32__0___System_Int32_System_Int32_">CopyTo(int, T[], int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies a range of elements from the <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a> to a compatible one-dimensional array, starting at the specified index of the target array.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyStructList_1_CopyTo__0___System_Int32_" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.CopyTo(`0[],System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.CopyTo.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_CopyTo__0___System_Int32_">CopyTo(T[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the entire <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a> to a compatible one-dimensional array, starting at the specified index of the target array.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyStructList_1_CountAll_GrapeCity_Documents_Common_StructPredicate__0__" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.CountAll(GrapeCity.Documents.Common.StructPredicate{`0})">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.CountAll.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_CountAll_GrapeCity_Documents_Common_StructPredicate__0__">CountAll(StructPredicate&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of elements in the <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a> that match the conditions defined by the specified predicate.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyStructList_1_Exists_GrapeCity_Documents_Common_StructPredicate__0__" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.Exists(GrapeCity.Documents.Common.StructPredicate{`0})">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.Exists.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_Exists_GrapeCity_Documents_Common_StructPredicate__0__">Exists(StructPredicate&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a> contains elements that match the conditions defined by the specified predicate.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyStructList_1_FindAll_GrapeCity_Documents_Common_StructPredicate__0__" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.FindAll(GrapeCity.Documents.Common.StructPredicate{`0})">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.FindAll.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_FindAll_GrapeCity_Documents_Common_StructPredicate__0__">FindAll(StructPredicate&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves all the elements that match the conditions defined by the specified predicate.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyStructList_1_FindIndex_GrapeCity_Documents_Common_StructPredicate__0__" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.FindIndex(GrapeCity.Documents.Common.StructPredicate{`0})">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.FindIndex.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_FindIndex_GrapeCity_Documents_Common_StructPredicate__0__">FindIndex(StructPredicate&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyStructList_1_FindIndex_System_Int32_GrapeCity_Documents_Common_StructPredicate__0__" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.FindIndex(System.Int32,GrapeCity.Documents.Common.StructPredicate{`0})">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.FindIndex.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_FindIndex_System_Int32_GrapeCity_Documents_Common_StructPredicate__0__">FindIndex(int, StructPredicate&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a> that extends from the specified index to the last element.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyStructList_1_FindIndex_System_Int32_System_Int32_GrapeCity_Documents_Common_StructPredicate__0__" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.FindIndex(System.Int32,System.Int32,GrapeCity.Documents.Common.StructPredicate{`0})">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.FindIndex.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_FindIndex_System_Int32_System_Int32_GrapeCity_Documents_Common_StructPredicate__0__">FindIndex(int, int, StructPredicate&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a> that starts at the specified index and contains the specified number of elements.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyStructList_1_FindLastIndex_GrapeCity_Documents_Common_StructPredicate__0__" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.FindLastIndex(GrapeCity.Documents.Common.StructPredicate{`0})">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.FindLastIndex.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_FindLastIndex_GrapeCity_Documents_Common_StructPredicate__0__">FindLastIndex(StructPredicate&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyStructList_1_FindLastIndex_System_Int32_GrapeCity_Documents_Common_StructPredicate__0__" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.FindLastIndex(System.Int32,GrapeCity.Documents.Common.StructPredicate{`0})">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.FindLastIndex.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_FindLastIndex_System_Int32_GrapeCity_Documents_Common_StructPredicate__0__">FindLastIndex(int, StructPredicate&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a> that extends from the first element to the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyStructList_1_FindLastIndex_System_Int32_System_Int32_GrapeCity_Documents_Common_StructPredicate__0__" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.FindLastIndex(System.Int32,System.Int32,GrapeCity.Documents.Common.StructPredicate{`0})">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.FindLastIndex.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_FindLastIndex_System_Int32_System_Int32_GrapeCity_Documents_Common_StructPredicate__0__">FindLastIndex(int, int, StructPredicate&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a> that contains the specified number of elements and ends at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyStructList_1_ForEach_GrapeCity_Documents_Common_StructAction__0__" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.ForEach(GrapeCity.Documents.Common.StructAction{`0})">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.ForEach.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_ForEach_GrapeCity_Documents_Common_StructAction__0__">ForEach(StructAction&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs the specified action on each element of the <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyStructList_1_GetRange_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.GetRange(System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.GetRange.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_GetRange_System_Int32_System_Int32_">GetRange(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a shallow copy of a range of elements in the source <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyStructList_1_ToArray" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.ToArray">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.ToArray.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_ToArray">ToArray()</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the elements of the <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a> to a new array.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Common_ReadOnlyStructList_1_TrueForAll_GrapeCity_Documents_Common_StructPredicate__0__" data-uid="GrapeCity.Documents.Common.ReadOnlyStructList`1.TrueForAll(GrapeCity.Documents.Common.StructPredicate{`0})">
          <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.TrueForAll.html#GrapeCity_Documents_Common_ReadOnlyStructList_1_TrueForAll_GrapeCity_Documents_Common_StructPredicate__0__">TrueForAll(StructPredicate&lt;T&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether every element in the <a class="xref" href="GrapeCity.Documents.Common.ReadOnlyStructList-1.html">ReadOnlyStructList&lt;T&gt;</a> matches the conditions defined by the specified predicate.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
