# C1.Document.C1FoundPosition

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Document_C1FoundPosition" data-uid="C1.Document.C1FoundPosition" class="text-break">C1FoundPosition Class
</h1>
  <div class="markdown level0 summary"><p>Represents a position in a document where a text was found.</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">C1FoundPosition</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Document.html">C1.Document</a></h6>
  <h6><strong>Assembly</strong>: C1.Document.dll</h6>
  <h5 id="C1_Document_C1FoundPosition_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class C1FoundPosition</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class C1FoundPosition</code></pre>
  </div>
  <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="C1_Document_C1FoundPosition__ctor" data-uid="C1.Document.C1FoundPosition.#ctor">
          <a class="xref" href="C1.Document.C1FoundPosition.-ctor.html#C1_Document_C1FoundPosition__ctor">C1FoundPosition()</a>
        </td>
        <td class="markdown level1 summary"></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="C1_Document_C1FoundPosition_NearText" data-uid="C1.Document.C1FoundPosition.NearText">
          <a class="xref" href="C1.Document.C1FoundPosition.NearText.html#C1_Document_C1FoundPosition_NearText">NearText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the text near the found position.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1FoundPosition_PositionInNearText" data-uid="C1.Document.C1FoundPosition.PositionInNearText">
          <a class="xref" href="C1.Document.C1FoundPosition.PositionInNearText.html#C1_Document_C1FoundPosition_PositionInNearText">PositionInNearText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the zero-based position of the found string in <a class="xref" href="C1.Document.C1FoundPosition.NearText.html#C1_Document_C1FoundPosition_NearText">NearText</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="C1_Document_C1FoundPosition_GetBounds" data-uid="C1.Document.C1FoundPosition.GetBounds">
          <a class="xref" href="C1.Document.C1FoundPosition.GetBounds.html#C1_Document_C1FoundPosition_GetBounds">GetBounds()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the bounds of this <a class="xref" href="C1.Document.C1FoundPosition.html">C1FoundPosition</a> on the page,
rectangle calculated on the base of <span class="xref">C1.Document.C1DocumentTextPosition.PageCoords</span>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1FoundPosition_GetEnd" data-uid="C1.Document.C1FoundPosition.GetEnd">
          <a class="xref" href="C1.Document.C1FoundPosition.GetEnd.html#C1_Document_C1FoundPosition_GetEnd">GetEnd()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns <span class="xref">C1.Document.C1DocumentTextPosition</span> object defining end of searched text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1FoundPosition_GetFragmentRange_C1_Document_RenderFragment_" data-uid="C1.Document.C1FoundPosition.GetFragmentRange(C1.Document.RenderFragment)">
          <a class="xref" href="C1.Document.C1FoundPosition.GetFragmentRange.html#C1_Document_C1FoundPosition_GetFragmentRange_C1_Document_RenderFragment_">GetFragmentRange(RenderFragment)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the object defining the part of <code class="paramref">fragment</code> belongs to this <a class="xref" href="C1.Document.C1FoundPosition.html">C1FoundPosition</a>.
The type of object depends on type of <code class="paramref">fragment</code>, for example,
<span class="xref">C1.Document.RenderTextFragment</span> descendats return <span class="xref">C1.Document.C1TextBlockRange</span> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1FoundPosition_GetPage" data-uid="C1.Document.C1FoundPosition.GetPage">
          <a class="xref" href="C1.Document.C1FoundPosition.GetPage.html#C1_Document_C1FoundPosition_GetPage">GetPage()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns <span class="xref">C1.Document.C1Page</span> object where find position located.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1FoundPosition_GetStart" data-uid="C1.Document.C1FoundPosition.GetStart">
          <a class="xref" href="C1.Document.C1FoundPosition.GetStart.html#C1_Document_C1FoundPosition_GetStart">GetStart()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns <span class="xref">C1.Document.C1DocumentTextPosition</span> object defining start of searched text.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
