# C1.Win.C1Editor.C1TextPointer.op_Equality

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_C1Editor_C1TextPointer_op_Equality_" data-uid="C1.Win.C1Editor.C1TextPointer.op_Equality*">operator == Operator
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_C1Editor_C1TextPointer_op_Equality_" data-uid="C1.Win.C1Editor.C1TextPointer.op_Equality*"></a>
<h4 id="C1_Win_C1Editor_C1TextPointer_op_Equality_C1_Win_C1Editor_C1TextPointer_C1_Win_C1Editor_C1TextPointer_" data-uid="C1.Win.C1Editor.C1TextPointer.op_Equality(C1.Win.C1Editor.C1TextPointer,C1.Win.C1Editor.C1TextPointer)">operator ==(C1TextPointer, C1TextPointer)</h4>
<div class="markdown level1 summary"><p>The equality operator (==) compares two <a class="xref" href="C1.Win.C1Editor.C1TextPointer.html">C1TextPointer</a> operands and returns True if the  <a class="xref" href="C1.Win.C1Editor.C1TextPointer.html">C1TextPointer</a> operands are equal; otherwise, it returns False.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static bool operator ==(C1TextPointer markupPointer1, C1TextPointer markupPointer2)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Operator =(markupPointer1 As C1TextPointer, markupPointer2 As C1TextPointer) As Boolean</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.Win.C1Editor.C1TextPointer.html">C1TextPointer</a></td>
      <td><span class="parametername">markupPointer1</span></td>
      <td><p>The first text pointer to compare.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.C1Editor.C1TextPointer.html">C1TextPointer</a></td>
      <td><span class="parametername">markupPointer2</span></td>
      <td><p>The second text pointer to compare.</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>Returns True if two <a class="xref" href="C1.Win.C1Editor.C1TextPointer.html">C1TextPointer</a> operands are equal; otherwise, it returns False.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Editor_C1TextPointer_op_Equality_C1_Win_C1Editor_C1TextPointer_C1_Win_C1Editor_C1TextPointer__examples">Examples</h5>
<p>The code below compares end position of range1 and start position of range2.
<pre><code class="lang-csharp">if (range1.End == range2.Start)
Console.WriteLine(&quot;The ranges are adjacent.&quot;);</code></pre>

</div>
