# C1.Win.C1Editor.C1TextRange.Select

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_C1Editor_C1TextRange_Select_" data-uid="C1.Win.C1Editor.C1TextRange.Select*">Select Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_C1Editor_C1TextRange_Select_" data-uid="C1.Win.C1Editor.C1TextRange.Select*"></a>
<h4 id="C1_Win_C1Editor_C1TextRange_Select" data-uid="C1.Win.C1Editor.C1TextRange.Select">Select()</h4>
<div class="markdown level1 summary"><p>Moves selection to the current text range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Select()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub [Select]()</code></pre>
</div>
<h5 id="C1_Win_C1Editor_C1TextRange_Select_examples">Examples</h5>
<p>The following example replaces the selected text with a new value and moves selection to the end of the new text.
<pre><code class="lang-csharp">C1TextRange range = _editor.Selection.Clone();
range.Text = value;
//after inserting text we must collapse selection to the end
range.Normalize();
range.Start.MoveTo(range.End);
range.Select();</code></pre>

</div>
