# C1.Document.C1TextRange

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Document_C1TextRange" data-uid="C1.Document.C1TextRange" class="text-break">C1TextRange Struct
</h1>
  <div class="markdown level0 summary"><p>Represents a continuous range of text.</p>
</div>
  <div class="markdown level0 conceptual"></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_C1TextRange_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct C1TextRange</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure C1TextRange</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_C1TextRange__ctor_System_Int32_System_Int32_" data-uid="C1.Document.C1TextRange.#ctor(System.Int32,System.Int32)">
          <a class="xref" href="C1.Document.C1TextRange.-ctor.html#C1_Document_C1TextRange__ctor_System_Int32_System_Int32_">C1TextRange(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Document.C1TextRange.html">C1TextRange</a> struct.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Document_C1TextRange_Full" data-uid="C1.Document.C1TextRange.Full">
          <a class="xref" href="C1.Document.C1TextRange.Full.html">Full</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the full (all-inclusive) range.</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="C1_Document_C1TextRange_EndPosition" data-uid="C1.Document.C1TextRange.EndPosition">
          <a class="xref" href="C1.Document.C1TextRange.EndPosition.html#C1_Document_C1TextRange_EndPosition">EndPosition</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the end position (inclusive) of the text range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1TextRange_Length" data-uid="C1.Document.C1TextRange.Length">
          <a class="xref" href="C1.Document.C1TextRange.Length.html#C1_Document_C1TextRange_Length">Length</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the length of the text range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Document_C1TextRange_StartPosition" data-uid="C1.Document.C1TextRange.StartPosition">
          <a class="xref" href="C1.Document.C1TextRange.StartPosition.html#C1_Document_C1TextRange_StartPosition">StartPosition</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the 0-based start position in the text range.</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_C1TextRange_Contains_System_Int32_" data-uid="C1.Document.C1TextRange.Contains(System.Int32)">
          <a class="xref" href="C1.Document.C1TextRange.Contains.html#C1_Document_C1TextRange_Contains_System_Int32_">Contains(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Tests whether a specified position is contained within the current range.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
