# GrapeCity.Documents.Common.StructList-1.FindLastIndex

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Common_StructList_1_FindLastIndex_" data-uid="GrapeCity.Documents.Common.StructList`1.FindLastIndex*">FindLastIndex Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Common_StructList_1_FindLastIndex_" data-uid="GrapeCity.Documents.Common.StructList`1.FindLastIndex*"></a>
<h4 id="GrapeCity_Documents_Common_StructList_1_FindLastIndex_GrapeCity_Documents_Common_StructPredicate__0__" data-uid="GrapeCity.Documents.Common.StructList`1.FindLastIndex(GrapeCity.Documents.Common.StructPredicate{`0})">FindLastIndex(StructPredicate&lt;T&gt;)</h4>
<div 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.StructList-1.html">StructList&lt;T&gt;</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int FindLastIndex(StructPredicate&lt;T&gt; match)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FindLastIndex(match As StructPredicate(Of T)) As Integer</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="GrapeCity.Documents.Common.StructPredicate-1.html">StructPredicate</a>&lt;T&gt;</td>
      <td><span class="parametername">match</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Documents.Common.StructPredicate-1.html">StructPredicate&lt;T&gt;</a> delegate that defines the conditions of the element to search for.</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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>The zero-based index of the last occurrence of an element that matches the conditions defined by <code class="paramref">match</code>, if found; otherwise, –1.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Common_StructList_1_FindLastIndex_" data-uid="GrapeCity.Documents.Common.StructList`1.FindLastIndex*"></a>
<h4 id="GrapeCity_Documents_Common_StructList_1_FindLastIndex_System_Int32_GrapeCity_Documents_Common_StructPredicate__0__" data-uid="GrapeCity.Documents.Common.StructList`1.FindLastIndex(System.Int32,GrapeCity.Documents.Common.StructPredicate{`0})">FindLastIndex(int, StructPredicate&lt;T&gt;)</h4>
<div 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.StructList-1.html">StructList&lt;T&gt;</a> that extends from the first element to the specified index.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int FindLastIndex(int startIndex, StructPredicate&lt;T&gt; match)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FindLastIndex(startIndex As Integer, match As StructPredicate(Of T)) As Integer</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.int32">int</a></td>
      <td><span class="parametername">startIndex</span></td>
      <td><p>The zero-based starting index of the backward search.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Common.StructPredicate-1.html">StructPredicate</a>&lt;T&gt;</td>
      <td><span class="parametername">match</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Documents.Common.StructPredicate-1.html">StructPredicate&lt;T&gt;</a> delegate that defines the conditions of the element to search for.</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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>The zero-based index of the last occurrence of an element that matches the conditions defined by <code class="paramref">match</code>, if found; otherwise, –1.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Common_StructList_1_FindLastIndex_" data-uid="GrapeCity.Documents.Common.StructList`1.FindLastIndex*"></a>
<h4 id="GrapeCity_Documents_Common_StructList_1_FindLastIndex_System_Int32_System_Int32_GrapeCity_Documents_Common_StructPredicate__0__" data-uid="GrapeCity.Documents.Common.StructList`1.FindLastIndex(System.Int32,System.Int32,GrapeCity.Documents.Common.StructPredicate{`0})">FindLastIndex(int, int, StructPredicate&lt;T&gt;)</h4>
<div 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.StructList-1.html">StructList&lt;T&gt;</a> that contains the specified number of elements and ends at the specified index.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int FindLastIndex(int startIndex, int count, StructPredicate&lt;T&gt; match)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FindLastIndex(startIndex As Integer, count As Integer, match As StructPredicate(Of T)) As Integer</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.int32">int</a></td>
      <td><span class="parametername">startIndex</span></td>
      <td><p>The zero-based starting index of the backward search.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">count</span></td>
      <td><p>The number of elements in the section to search.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Common.StructPredicate-1.html">StructPredicate</a>&lt;T&gt;</td>
      <td><span class="parametername">match</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Documents.Common.StructPredicate-1.html">StructPredicate&lt;T&gt;</a> delegate that defines the conditions of the element to search for.</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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>The zero-based index of the last occurrence of an element that matches the conditions defined by <code class="paramref">match</code>, if found; otherwise, –1.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
