# C1.WPF.ExpressionEditor.C1ExpressionRichTextBox

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox" class="text-break">C1ExpressionRichTextBox Class
</h1>
  <div class="markdown level0 summary"><p>Represents a rich editing control that contains expression editor.</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"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.threading.dispatcherobject">DispatcherObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.dependencyobject">DependencyObject</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.visual">Visual</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level6"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level7"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.primitives.textboxbase">TextBoxBase</a></div>
    <div class="level8"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.richtextbox">RichTextBox</a></div>
    <div class="level9"><span class="xref">C1ExpressionRichTextBox</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.animation.ianimatable">IAnimatable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iframeworkinputelement">IFrameworkInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iinputelement">IInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iqueryambient">IQueryAmbient</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iaddchild">IAddChild</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.ExpressionEditor.html">C1.WPF.ExpressionEditor</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.ExpressionEditor.4.6.2.dll</h6>
  <h5 id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;IntellisensePopup&quot;, Type = typeof(Popup))]
[TemplatePart(Name = &quot;IntellisenseBox&quot;, Type = typeof(ListBox))]
[TemplatePart(Name = &quot;DescriptionToolTip&quot;, Type = typeof(ToolTip))]
public class C1ExpressionRichTextBox : RichTextBox, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;IntellisensePopup&quot;, Type:=GetType(Popup))&gt;
&lt;TemplatePart(Name:=&quot;IntellisenseBox&quot;, Type:=GetType(ListBox))&gt;
&lt;TemplatePart(Name:=&quot;DescriptionToolTip&quot;, Type:=GetType(ToolTip))&gt;
Public Class C1ExpressionRichTextBox
    Inherits RichTextBox
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox__ctor" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.#ctor">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.-ctor.html#C1_WPF_ExpressionEditor_C1ExpressionRichTextBox__ctor">C1ExpressionRichTextBox()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.html">C1ExpressionRichTextBox</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_ExpressionRulesProperty" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.ExpressionRulesProperty">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.ExpressionRulesProperty.html">ExpressionRulesProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.ExpressionRules.html#C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_ExpressionRules">ExpressionRules</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_SyntaxHighlightingProperty" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.SyntaxHighlightingProperty">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.SyntaxHighlightingProperty.html">SyntaxHighlightingProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.SyntaxHighlighting.html#C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_SyntaxHighlighting">SyntaxHighlighting</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_TextProperty" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.TextProperty">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.TextProperty.html">TextProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.Text.html#C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_Text">Text</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_UnderlineErrorsProperty" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.UnderlineErrorsProperty">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.UnderlineErrorsProperty.html">UnderlineErrorsProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.UnderlineErrors.html#C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_UnderlineErrors">UnderlineErrors</a> dependency property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_WPF_ExpressionEditor_C1ExpressionRichTextBox_CurrentHighlighter" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.CurrentHighlighter">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.CurrentHighlighter.html#C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_CurrentHighlighter">CurrentHighlighter</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the interface of the ExpressionEditor highlighter.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_ExpressionRules" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.ExpressionRules">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.ExpressionRules.html#C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_ExpressionRules">ExpressionRules</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the rules of the expression.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_SyntaxHighlighting" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.SyntaxHighlighting">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.SyntaxHighlighting.html#C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_SyntaxHighlighting">SyntaxHighlighting</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether to highlight syntax.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_Text" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.Text">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.Text.html#C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text contents.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_ToolTipDescription" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.ToolTipDescription">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.ToolTipDescription.html#C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_ToolTipDescription">ToolTipDescription</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the tooltip description element of the editor.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_UnderlineErrors" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.UnderlineErrors">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.UnderlineErrors.html#C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_UnderlineErrors">UnderlineErrors</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether to underline errors.</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_WPF_ExpressionEditor_C1ExpressionRichTextBox_Dispose" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.Dispose">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.Dispose.html#C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Clean up events being used.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_HideDescriptionToolTip" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.HideDescriptionToolTip">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.HideDescriptionToolTip.html#C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_HideDescriptionToolTip">HideDescriptionToolTip()</a>
        </td>
        <td class="markdown level1 summary"><p>Hides tooltip.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_HighlighterContent" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.HighlighterContent">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.HighlighterContent.html#C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_HighlighterContent">HighlighterContent()</a>
        </td>
        <td class="markdown level1 summary"><p>Highlighter the content of the editor.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_OnApplyTemplate" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.OnApplyTemplate">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.OnApplyTemplate.html#C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Builds the visual tree for the <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.html">C1ExpressionRichTextBox</a> control when a new template is applied.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_OnWordMouseEnter_C1_WPF_ExpressionEditor_WordLocationEventArgs_" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.OnWordMouseEnter(C1.WPF.ExpressionEditor.WordLocationEventArgs)">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.OnWordMouseEnter.html#C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_OnWordMouseEnter_C1_WPF_ExpressionEditor_WordLocationEventArgs_">OnWordMouseEnter(WordLocationEventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_OnWordMouseLeave_System_EventArgs_" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.OnWordMouseLeave(System.EventArgs)">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.OnWordMouseLeave.html#C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_OnWordMouseLeave_System_EventArgs_">OnWordMouseLeave(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_ShowDescriptionToolTip_C1_ExpressionEditor_Engine_ExpressionItem_System_Double_System_Double_" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.ShowDescriptionToolTip(C1.ExpressionEditor.Engine.ExpressionItem,System.Double,System.Double)">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.ShowDescriptionToolTip.html#C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_ShowDescriptionToolTip_C1_ExpressionEditor_Engine_ExpressionItem_System_Double_System_Double_">ShowDescriptionToolTip(ExpressionItem, double, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Show the tooltip of description.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_ShowDescriptionToolTip_C1_ExpressionEditor_Engine_ExpressionItem_System_Double_System_Double_System_Int32_" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.ShowDescriptionToolTip(C1.ExpressionEditor.Engine.ExpressionItem,System.Double,System.Double,System.Int32)">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.ShowDescriptionToolTip.html#C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_ShowDescriptionToolTip_C1_ExpressionEditor_Engine_ExpressionItem_System_Double_System_Double_System_Int32_">ShowDescriptionToolTip(ExpressionItem, double, double, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Show the tooltip of description.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_WordMouseEnter" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.WordMouseEnter">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.WordMouseEnter.html">WordMouseEnter</a>
        </td>
        <td class="markdown level1 summary"><p>The event raised when mouse over on the word.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_ExpressionEditor_C1ExpressionRichTextBox_WordMouseLeave" data-uid="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.WordMouseLeave">
          <a class="xref" href="C1.WPF.ExpressionEditor.C1ExpressionRichTextBox.WordMouseLeave.html">WordMouseLeave</a>
        </td>
        <td class="markdown level1 summary"><p>The event raised when the mouse leaves from the word.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
