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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_RichTextBox_Documents_C1TextPointer__ctor_" data-uid="C1.WPF.RichTextBox.Documents.C1TextPointer.#ctor*">C1TextPointer Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_RichTextBox_Documents_C1TextPointer__ctor_" data-uid="C1.WPF.RichTextBox.Documents.C1TextPointer.#ctor*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_C1TextPointer__ctor_C1_WPF_RichTextBox_Documents_C1TextElement_System_Int32_" data-uid="C1.WPF.RichTextBox.Documents.C1TextPointer.#ctor(C1.WPF.RichTextBox.Documents.C1TextElement,System.Int32)">C1TextPointer(C1TextElement, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextPointer.html">C1TextPointer</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1TextPointer(C1TextElement element, int offset)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(element As C1TextElement, offset 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> where to position the <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextPointer.html">C1TextPointer</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">offset</span></td>
      <td><p>The offset where to position the <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextPointer.html">C1TextPointer</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_RichTextBox_Documents_C1TextPointer__ctor_" data-uid="C1.WPF.RichTextBox.Documents.C1TextPointer.#ctor*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_C1TextPointer__ctor_C1_WPF_RichTextBox_Documents_C1TextElement_System_Int32_System_Windows_Documents_LogicalDirection_" data-uid="C1.WPF.RichTextBox.Documents.C1TextPointer.#ctor(C1.WPF.RichTextBox.Documents.C1TextElement,System.Int32,System.Windows.Documents.LogicalDirection)">C1TextPointer(C1TextElement, int, LogicalDirection)</h4>
<div class="markdown level1 summary"><p>Initializes a new <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextPointer.html">C1TextPointer</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1TextPointer(C1TextElement element, int offset, LogicalDirection logicalDirection)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(element As C1TextElement, offset As Integer, logicalDirection As LogicalDirection)</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> where to position the <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextPointer.html">C1TextPointer</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">offset</span></td>
      <td><p>The offset where to position the <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextPointer.html">C1TextPointer</a>.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.documents.logicaldirection">LogicalDirection</a></td>
      <td><span class="parametername">logicalDirection</span></td>
      <td><p>The logical direction of the <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextPointer.html">C1TextPointer</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_RichTextBox_Documents_C1TextPointer__ctor_" data-uid="C1.WPF.RichTextBox.Documents.C1TextPointer.#ctor*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_C1TextPointer__ctor_C1_WPF_RichTextBox_Documents_C1TextPointer_" data-uid="C1.WPF.RichTextBox.Documents.C1TextPointer.#ctor(C1.WPF.RichTextBox.Documents.C1TextPointer)">C1TextPointer(C1TextPointer)</h4>
<div class="markdown level1 summary"><p>Initializes a new <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextPointer.html">C1TextPointer</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1TextPointer(C1TextPointer position)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(position 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">position</span></td>
      <td><p>A position to initialize this <a class="xref" href="C1.WPF.RichTextBox.Documents.C1TextPointer.html">C1TextPointer</a> with.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
