# C1.C1Preview.C1PrintDocument.FindInputFragment

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_C1PrintDocument_FindInputFragment_" data-uid="C1.C1Preview.C1PrintDocument.FindInputFragment*">FindInputFragment Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_C1PrintDocument_FindInputFragment_" data-uid="C1.C1Preview.C1PrintDocument.FindInputFragment*"></a>
<h4 id="C1_C1Preview_C1PrintDocument_FindInputFragment_System_Int32_System_Boolean_" data-uid="C1.C1Preview.C1PrintDocument.FindInputFragment(System.Int32,System.Boolean)">FindInputFragment(int, bool)</h4>
<div class="markdown level1 summary"><p>Searches for the first occurrence of a <a class="xref" href="C1.C1Preview.RenderInputFragment.html">RenderInputFragment</a> object in the current document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RenderInputFragment FindInputFragment(int startPageIndex, bool forward)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function FindInputFragment(startPageIndex As Integer, forward As Boolean) As RenderInputFragment</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">startPageIndex</span></td>
      <td><p>The 0-based index of the page to start the search at.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">forward</span></td>
      <td><p>Specifies whether to search forward or backward.</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="C1.C1Preview.RenderInputFragment.html">RenderInputFragment</a></td>
      <td><p>The <a class="xref" href="C1.C1Preview.RenderInputFragment.html">RenderInputFragment</a> object that was found, or <b>null</b>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
