# C1.Win.C1Editor.C1TextRange.Text

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_C1Editor_C1TextRange_Text_" data-uid="C1.Win.C1Editor.C1TextRange.Text*">Text Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_C1Editor_C1TextRange_Text_" data-uid="C1.Win.C1Editor.C1TextRange.Text*"></a>
<h4 id="C1_Win_C1Editor_C1TextRange_Text" data-uid="C1.Win.C1Editor.C1TextRange.Text">Text</h4>
<div class="markdown level1 summary"><p>Returns or sets the inner text of the 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 string Text { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Text As String</code></pre>
</div>
<h5 id="C1_Win_C1Editor_C1TextRange_Text_examples">Examples</h5>
<p>This code demonstrates the <a class="xref" href="C1.Win.C1Editor.C1TextRange.Text.html#C1_Win_C1Editor_C1TextRange_Text">Text</a> and the <a class="xref" href="C1.Win.C1Editor.C1TextRange.XmlText.html#C1_Win_C1Editor_C1TextRange_XmlText">XmlText</a> properties.
<pre><code class="lang-csharp"> private void button1_Click(object sender, EventArgs e)
{
c1Editor1.LoadXml(&quot;&lt;html&gt;&lt;head&gt;&lt;title&gt;Document&lt;/title&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;12&lt;span&gt;3&lt;/span&gt;456&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;&quot;, new Uri(&quot;c:\&quot;));
C1TextRange r = c1Editor1.CreateRange();
r.Move(1, 3);
Console.WriteLine(r.Text);
// Output: 234
Console.WriteLine(r.XmlText);
// Output: &lt;p xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;2&lt;span&gt;3&lt;/span&gt;4&lt;/p&gt;
r.XmlText = &quot;&lt;div style=&quot;border: solid 1px black&quot;&gt;New Text&lt;/div&gt;&quot;;
Console.WriteLine(c1Editor1.Text);
//Output:
//1
//NewText
//56
}</code></pre>

</div>
