# C1.Win.C1Editor.C1TextRange

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_C1Editor_C1TextRange" data-uid="C1.Win.C1Editor.C1TextRange" class="text-break">C1TextRange Class
</h1>
  <div class="markdown level0 summary"><p>Represents a contiguous area in an XML document.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">C1TextRange</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.C1Editor.html">C1.Win.C1Editor</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Editor.4.8.dll</h6>
  <h5 id="C1_Win_C1Editor_C1TextRange_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class C1TextRange</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class C1TextRange</code></pre>
  </div>
  <h5 id="C1_Win_C1Editor_C1TextRange_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Each <b>C1TextRange</b> object is defined by a starting, <a class="xref" href="C1.Win.C1Editor.C1TextRange.Start.html#C1_Win_C1Editor_C1TextRange_Start">Start</a>, and an ending, <a class="xref" href="C1.Win.C1Editor.C1TextRange.End.html#C1_Win_C1Editor_C1TextRange_End">End</a>, character position of the type <a class="xref" href="C1.Win.C1Editor.C1TextPointer.html">C1TextPointer</a>.
<b>C1TextRange</b> objects are used to identify specific portions of a document.
<b>C1TextRange</b> objects are independent of the selection.
That is, you can define and manipulate a range without changing the selection. You can also define multiple ranges in a document, while there can be only one selection per pane.</p>
</div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_End" data-uid="C1.Win.C1Editor.C1TextRange.End">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.End.html#C1_Win_C1Editor_C1TextRange_End">End</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the end pointer of the range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_Node" data-uid="C1.Win.C1Editor.C1TextRange.Node">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.Node.html#C1_Win_C1Editor_C1TextRange_Node">Node</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.xmlnode">XmlNode</a> which covers the current range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_Start" data-uid="C1.Win.C1Editor.C1TextRange.Start">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.Start.html#C1_Win_C1Editor_C1TextRange_Start">Start</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the start pointer of the range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_Text" data-uid="C1.Win.C1Editor.C1TextRange.Text">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.Text.html#C1_Win_C1Editor_C1TextRange_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets the inner text of the text range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_XmlText" data-uid="C1.Win.C1Editor.C1TextRange.XmlText">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.XmlText.html#C1_Win_C1Editor_C1TextRange_XmlText">XmlText</a>
        </td>
        <td class="markdown level1 summary"><p>Returns or sets the XML text of the text range.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_ApplyClass_System_String_" data-uid="C1.Win.C1Editor.C1TextRange.ApplyClass(System.String)">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.ApplyClass.html#C1_Win_C1Editor_C1TextRange_ApplyClass_System_String_">ApplyClass(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies specified CSS class to the text range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_ApplyClass_System_String_C1_Win_C1Editor_C1StyleType_" data-uid="C1.Win.C1Editor.C1TextRange.ApplyClass(System.String,C1.Win.C1Editor.C1StyleType)">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.ApplyClass.html#C1_Win_C1Editor_C1TextRange_ApplyClass_System_String_C1_Win_C1Editor_C1StyleType_">ApplyClass(string, C1StyleType)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies specified CSS class to the text range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_ApplyStyle_System_String_System_String_" data-uid="C1.Win.C1Editor.C1TextRange.ApplyStyle(System.String,System.String)">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.ApplyStyle.html#C1_Win_C1Editor_C1TextRange_ApplyStyle_System_String_System_String_">ApplyStyle(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies specified inline style to the range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_ApplyStyle_System_String_System_String_C1_Win_C1Editor_C1StyleType_" data-uid="C1.Win.C1Editor.C1TextRange.ApplyStyle(System.String,System.String,C1.Win.C1Editor.C1StyleType)">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.ApplyStyle.html#C1_Win_C1Editor_C1TextRange_ApplyStyle_System_String_System_String_C1_Win_C1Editor_C1StyleType_">ApplyStyle(string, string, C1StyleType)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies specified inline style to the range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_ApplyTag_System_String_" data-uid="C1.Win.C1Editor.C1TextRange.ApplyTag(System.String)">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.ApplyTag.html#C1_Win_C1Editor_C1TextRange_ApplyTag_System_String_">ApplyTag(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies specified tag to the text range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_ClearFormatting" data-uid="C1.Win.C1Editor.C1TextRange.ClearFormatting">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.ClearFormatting.html#C1_Win_C1Editor_C1TextRange_ClearFormatting">ClearFormatting()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes text and paragraph formatting from the text range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_Clone" data-uid="C1.Win.C1Editor.C1TextRange.Clone">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.Clone.html#C1_Win_C1Editor_C1TextRange_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates and returns a copy of the current text range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_GetStyleValue_System_String_" data-uid="C1.Win.C1Editor.C1TextRange.GetStyleValue(System.String)">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.GetStyleValue.html#C1_Win_C1Editor_C1TextRange_GetStyleValue_System_String_">GetStyleValue(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an inline style value by the given CSS property name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_GetStyleValue_System_String_C1_Win_C1Editor_C1StyleType_" data-uid="C1.Win.C1Editor.C1TextRange.GetStyleValue(System.String,C1.Win.C1Editor.C1StyleType)">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.GetStyleValue.html#C1_Win_C1Editor_C1TextRange_GetStyleValue_System_String_C1_Win_C1Editor_C1StyleType_">GetStyleValue(string, C1StyleType)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an inline style value by the given CSS property name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_GetTags_C1_Win_C1Editor_C1StyleType_System_Boolean_" data-uid="C1.Win.C1Editor.C1TextRange.GetTags(C1.Win.C1Editor.C1StyleType,System.Boolean)">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.GetTags.html#C1_Win_C1Editor_C1TextRange_GetTags_C1_Win_C1Editor_C1StyleType_System_Boolean_">GetTags(C1StyleType, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets nodes list by the given C1StyleType value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_IsClassApplied_System_String_" data-uid="C1.Win.C1Editor.C1TextRange.IsClassApplied(System.String)">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.IsClassApplied.html#C1_Win_C1Editor_C1TextRange_IsClassApplied_System_String_">IsClassApplied(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a value indicating whether the specified CSS class is applied to the <a class="xref" href="C1.Win.C1Editor.C1TextRange.html">C1TextRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_IsStyleApplied_System_String_" data-uid="C1.Win.C1Editor.C1TextRange.IsStyleApplied(System.String)">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.IsStyleApplied.html#C1_Win_C1Editor_C1TextRange_IsStyleApplied_System_String_">IsStyleApplied(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a value indicating whether the inline style is applied to all text within the <a class="xref" href="C1.Win.C1Editor.C1TextRange.html">C1TextRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_IsTagApplied_System_String_" data-uid="C1.Win.C1Editor.C1TextRange.IsTagApplied(System.String)">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.IsTagApplied.html#C1_Win_C1Editor_C1TextRange_IsTagApplied_System_String_">IsTagApplied(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a value indicating whether the specified tag is applied to the <a class="xref" href="C1.Win.C1Editor.C1TextRange.html">C1TextRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_Move_System_Int32_System_Int32_" data-uid="C1.Win.C1Editor.C1TextRange.Move(System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.Move.html#C1_Win_C1Editor_C1TextRange_Move_System_Int32_System_Int32_">Move(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Moves the current range by the specified offset and length.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_MoveTo_System_Xml_XmlNode_" data-uid="C1.Win.C1Editor.C1TextRange.MoveTo(System.Xml.XmlNode)">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.MoveTo.html#C1_Win_C1Editor_C1TextRange_MoveTo_System_Xml_XmlNode_">MoveTo(XmlNode)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_Normalize" data-uid="C1.Win.C1Editor.C1TextRange.Normalize">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.Normalize.html#C1_Win_C1Editor_C1TextRange_Normalize">Normalize()</a>
        </td>
        <td class="markdown level1 summary"><p>Moves the range pointers to the most inner text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_RemoveClass_System_String_" data-uid="C1.Win.C1Editor.C1TextRange.RemoveClass(System.String)">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.RemoveClass.html#C1_Win_C1Editor_C1TextRange_RemoveClass_System_String_">RemoveClass(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes specified CSS class from the range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_RemoveStyle_System_String_System_String_" data-uid="C1.Win.C1Editor.C1TextRange.RemoveStyle(System.String,System.String)">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.RemoveStyle.html#C1_Win_C1Editor_C1TextRange_RemoveStyle_System_String_System_String_">RemoveStyle(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the specified inline style.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_RemoveTag_System_String_" data-uid="C1.Win.C1Editor.C1TextRange.RemoveTag(System.String)">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.RemoveTag.html#C1_Win_C1Editor_C1TextRange_RemoveTag_System_String_">RemoveTag(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes specified tag from the <a class="xref" href="C1.Win.C1Editor.C1TextRange.html">C1TextRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_Select" data-uid="C1.Win.C1Editor.C1TextRange.Select">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.Select.html#C1_Win_C1Editor_C1TextRange_Select">Select()</a>
        </td>
        <td class="markdown level1 summary"><p>Moves selection to the current text range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_SetXmlElement_System_Xml_XmlElement_" data-uid="C1.Win.C1Editor.C1TextRange.SetXmlElement(System.Xml.XmlElement)">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.SetXmlElement.html#C1_Win_C1Editor_C1TextRange_SetXmlElement_System_Xml_XmlElement_">SetXmlElement(XmlElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Replaces the text range content with the given <code class="paramref">element</code> of <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.xml.xmlelement">XmlElement</a> type.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Editor_C1TextRange_Trim" data-uid="C1.Win.C1Editor.C1TextRange.Trim">
          <a class="xref" href="C1.Win.C1Editor.C1TextRange.Trim.html#C1_Win_C1Editor_C1TextRange_Trim">Trim()</a>
        </td>
        <td class="markdown level1 summary"><p>Moves start and end pointers of the range to exclude leading and trailing white-space characters from the current range.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
