# C1.WPF.RichTextBox.Documents.C1TextRange.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_RichTextBox_Documents_C1TextRange__ctor_" data-uid="C1.WPF.RichTextBox.Documents.C1TextRange.#ctor*">C1TextRange Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_RichTextBox_Documents_C1TextRange__ctor_" data-uid="C1.WPF.RichTextBox.Documents.C1TextRange.#ctor*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_C1TextRange__ctor_C1_WPF_RichTextBox_Documents_C1TextPointer_C1_WPF_RichTextBox_Documents_C1TextPointer_" data-uid="C1.WPF.RichTextBox.Documents.C1TextRange.#ctor(C1.WPF.RichTextBox.Documents.C1TextPointer,C1.WPF.RichTextBox.Documents.C1TextPointer)">C1TextRange(C1TextPointer, C1TextPointer)</h4>
<div class="markdown level1 summary"><p>Initializes a <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextRange.html">C1TextRange</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1TextRange(C1TextPointer start, C1TextPointer end)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(start As C1TextPointer, [end] As C1TextPointer)</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="C1.WPF.RichTextBox.Documents.C1TextPointer.html">C1TextPointer</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The start position.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextPointer.html">C1TextPointer</a></td>
      <td><span class="parametername">end</span></td>
      <td><p>The end position.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_RichTextBox_Documents_C1TextRange__ctor_" data-uid="C1.WPF.RichTextBox.Documents.C1TextRange.#ctor*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_C1TextRange__ctor_C1_WPF_RichTextBox_Documents_C1TextRange_" data-uid="C1.WPF.RichTextBox.Documents.C1TextRange.#ctor(C1.WPF.RichTextBox.Documents.C1TextRange)">C1TextRange(C1TextRange)</h4>
<div class="markdown level1 summary"><p>Initializes a <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextRange.html">C1TextRange</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1TextRange(C1TextRange range)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(range As C1TextRange)</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="C1.WPF.RichTextBox.Documents.C1TextRange.html">C1TextRange</a></td>
      <td><span class="parametername">range</span></td>
      <td><p>A range to copy.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_RichTextBox_Documents_C1TextRange__ctor_" data-uid="C1.WPF.RichTextBox.Documents.C1TextRange.#ctor*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_C1TextRange__ctor_C1_WPF_RichTextBox_Documents_C1TextPointer_" data-uid="C1.WPF.RichTextBox.Documents.C1TextRange.#ctor(C1.WPF.RichTextBox.Documents.C1TextPointer)">C1TextRange(C1TextPointer)</h4>
<div class="markdown level1 summary"><p>Initializes an empty <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextRange.html">C1TextRange</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1TextRange(C1TextPointer pos)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(pos As C1TextPointer)</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="C1.WPF.RichTextBox.Documents.C1TextPointer.html">C1TextPointer</a></td>
      <td><span class="parametername">pos</span></td>
      <td><p>The start and end position.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_RichTextBox_Documents_C1TextRange__ctor_" data-uid="C1.WPF.RichTextBox.Documents.C1TextRange.#ctor*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_C1TextRange__ctor_C1_WPF_RichTextBox_Documents_C1TextElement_System_Int32_System_Int32_" data-uid="C1.WPF.RichTextBox.Documents.C1TextRange.#ctor(C1.WPF.RichTextBox.Documents.C1TextElement,System.Int32,System.Int32)">C1TextRange(C1TextElement, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextRange.html">C1TextRange</a> from text indexes inside a <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextElement.html">C1TextElement</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1TextRange(C1TextElement element, int start, int length)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(element As C1TextElement, start As Integer, length 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="C1.WPF.RichTextBox.Documents.C1TextElement.html">C1TextElement</a></td>
      <td><span class="parametername">element</span></td>
      <td><p>The <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextElement.html">C1TextElement</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The start index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">length</span></td>
      <td><p>The length of the range.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
