# C1.Win.C1Editor.C1TextRange.MoveTo

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_C1Editor_C1TextRange_MoveTo_" data-uid="C1.Win.C1Editor.C1TextRange.MoveTo*">MoveTo Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_C1Editor_C1TextRange_MoveTo_" data-uid="C1.Win.C1Editor.C1TextRange.MoveTo*"></a>
<h4 id="C1_Win_C1Editor_C1TextRange_MoveTo_System_Xml_XmlNode_" data-uid="C1.Win.C1Editor.C1TextRange.MoveTo(System.Xml.XmlNode)">MoveTo(XmlNode)</h4>
<div class="markdown level1 summary"><p>Moves the <a class="xref" href="C1.Win.C1Editor.C1TextRange.html">C1TextRange</a> object to the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.xmlnode">XmlNode</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void MoveTo(XmlNode node)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub MoveTo(node As XmlNode)</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="https://learn.microsoft.com/dotnet/api/system.xml.xmlnode">XmlNode</a></td>
      <td><span class="parametername">node</span></td>
      <td><p>The target node where the C1TextRange object will be moved.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Editor_C1TextRange_MoveTo_System_Xml_XmlNode__examples">Examples</h5>
<p>The following example selects the first paragraph in the document.
<pre><code class="lang-csharp">private void button1_Click(object sender, EventArgs e)
{
XmlNode p0 = c1Editor1.Document.GetElementsByTagName(&quot;p&quot;)[0];
C1TextRange range = c1Editor1.CreateRange();
range.MoveTo(p0);
range.Select();
}</code></pre>

</div>
