# C1.WPF.RichTextBox.C1FindAndReplace

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_RichTextBox_C1FindAndReplace" data-uid="C1.WPF.RichTextBox.C1FindAndReplace" class="text-break">C1FindAndReplace Class
</h1>
  <div class="markdown level0 summary"><p>Control for finding and replacing text from the toolbar.</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"><span class="xref">C1FindAndReplace</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>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.RichTextBox.html">C1.WPF.RichTextBox</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.RichTextBox.Toolbar.4.6.2.dll</h6>
  <h5 id="C1_WPF_RichTextBox_C1FindAndReplace_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;FindBox&quot;, Type = typeof(TextBox))]
[TemplatePart(Name = &quot;ReplaceBox&quot;, Type = typeof(TextBox))]
[TemplatePart(Name = &quot;FindButton&quot;, Type = typeof(Button))]
[TemplatePart(Name = &quot;ReplaceButton&quot;, Type = typeof(Button))]
[TemplatePart(Name = &quot;ReplaceAllButton&quot;, Type = typeof(Button))]
[TemplateVisualState(Name = &quot;MouseOver&quot;, GroupName = &quot;CommonStates&quot;)]
[TemplateVisualState(Name = &quot;Disabled&quot;, GroupName = &quot;CommonStates&quot;)]
[TemplateVisualState(Name = &quot;Normal&quot;, GroupName = &quot;CommonStates&quot;)]
public class C1FindAndReplace : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;FindBox&quot;, Type:=GetType(TextBox))&gt;
&lt;TemplatePart(Name:=&quot;ReplaceBox&quot;, Type:=GetType(TextBox))&gt;
&lt;TemplatePart(Name:=&quot;FindButton&quot;, Type:=GetType(Button))&gt;
&lt;TemplatePart(Name:=&quot;ReplaceButton&quot;, Type:=GetType(Button))&gt;
&lt;TemplatePart(Name:=&quot;ReplaceAllButton&quot;, Type:=GetType(Button))&gt;
&lt;TemplateVisualState(Name:=&quot;MouseOver&quot;, GroupName:=&quot;CommonStates&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;Disabled&quot;, GroupName:=&quot;CommonStates&quot;)&gt;
&lt;TemplateVisualState(Name:=&quot;Normal&quot;, GroupName:=&quot;CommonStates&quot;)&gt;
Public Class C1FindAndReplace
    Inherits Control
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient</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_RichTextBox_C1FindAndReplace__ctor" data-uid="C1.WPF.RichTextBox.C1FindAndReplace.#ctor">
          <a class="xref" href="C1.WPF.RichTextBox.C1FindAndReplace.-ctor.html#C1_WPF_RichTextBox_C1FindAndReplace__ctor">C1FindAndReplace()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.RichTextBox.C1FindAndReplace.html">C1FindAndReplace</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_RichTextBox_C1FindAndReplace_DropDownProperty" data-uid="C1.WPF.RichTextBox.C1FindAndReplace.DropDownProperty">
          <a class="xref" href="C1.WPF.RichTextBox.C1FindAndReplace.DropDownProperty.html">DropDownProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RichTextBox.C1FindAndReplace.DropDown.html#C1_WPF_RichTextBox_C1FindAndReplace_DropDown">DropDown</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1FindAndReplace_RichTextBoxProperty" data-uid="C1.WPF.RichTextBox.C1FindAndReplace.RichTextBoxProperty">
          <a class="xref" href="C1.WPF.RichTextBox.C1FindAndReplace.RichTextBoxProperty.html">RichTextBoxProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RichTextBox.C1FindAndReplace.RichTextBox.html#C1_WPF_RichTextBox_C1FindAndReplace_RichTextBox">RichTextBox</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_RichTextBox_C1FindAndReplace_DropDown" data-uid="C1.WPF.RichTextBox.C1FindAndReplace.DropDown">
          <a class="xref" href="C1.WPF.RichTextBox.C1FindAndReplace.DropDown.html#C1_WPF_RichTextBox_C1FindAndReplace_DropDown">DropDown</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the dropdown of this tool.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1FindAndReplace_RichTextBox" data-uid="C1.WPF.RichTextBox.C1FindAndReplace.RichTextBox">
          <a class="xref" href="C1.WPF.RichTextBox.C1FindAndReplace.RichTextBox.html#C1_WPF_RichTextBox_C1FindAndReplace_RichTextBox">RichTextBox</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="../C1.WPF.RichTextBox.4.6.2/C1.WPF.RichTextBox.C1RichTextBox.html">C1RichTextBox</a> associated with this tool.</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_RichTextBox_C1FindAndReplace_ChangeVisualStateCommon_System_Boolean_" data-uid="C1.WPF.RichTextBox.C1FindAndReplace.ChangeVisualStateCommon(System.Boolean)">
          <a class="xref" href="C1.WPF.RichTextBox.C1FindAndReplace.ChangeVisualStateCommon.html#C1_WPF_RichTextBox_C1FindAndReplace_ChangeVisualStateCommon_System_Boolean_">ChangeVisualStateCommon(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Updates the current visual state of the Common visual state group to match the object's properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1FindAndReplace_OnApplyTemplate" data-uid="C1.WPF.RichTextBox.C1FindAndReplace.OnApplyTemplate">
          <a class="xref" href="C1.WPF.RichTextBox.C1FindAndReplace.OnApplyTemplate.html#C1_WPF_RichTextBox_C1FindAndReplace_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Builds the visual tree for the <a class="xref" href="C1.WPF.RichTextBox.C1FindAndReplace.html">C1FindAndReplace</a> control when a new template is applied.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1FindAndReplace_OnPropertyChanged_System_Windows_DependencyPropertyChangedEventArgs_" data-uid="C1.WPF.RichTextBox.C1FindAndReplace.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)">
          <a class="xref" href="C1.WPF.RichTextBox.C1FindAndReplace.OnPropertyChanged.html#C1_WPF_RichTextBox_C1FindAndReplace_OnPropertyChanged_System_Windows_DependencyPropertyChangedEventArgs_">OnPropertyChanged(DependencyPropertyChangedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Invoked whenever the effective value of any dependency property has been updated.</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_RichTextBox_C1FindAndReplace_IsMouseOverChanged" data-uid="C1.WPF.RichTextBox.C1FindAndReplace.IsMouseOverChanged">
          <a class="xref" href="C1.WPF.RichTextBox.C1FindAndReplace.IsMouseOverChanged.html">IsMouseOverChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Event raised when the <span class="xref">IsMouseOver</span> property has changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
