# C1.WPF.RichTextBox.C1RichTextBoxToolbar

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_RichTextBox_C1RichTextBoxToolbar" data-uid="C1.WPF.RichTextBox.C1RichTextBoxToolbar" class="text-break">C1RichTextBoxToolbar Class
</h1>
  <div class="markdown level0 summary"><p>Represents a toolbar for a <a class="xref" href="../C1.WPF.RichTextBox.4.6.2/C1.WPF.RichTextBox.C1RichTextBox.html">C1RichTextBox</a>.</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">C1RichTextBoxToolbar</span></div>
      <div class="level8"><a class="xref" href="C1.WPF.RichTextBox.C1SimplifiedRichTextBoxToolbar.html">C1SimplifiedRichTextBoxToolbar</a></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_C1RichTextBoxToolbar_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[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 C1RichTextBoxToolbar : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&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 C1RichTextBoxToolbar
    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_C1RichTextBoxToolbar__ctor" data-uid="C1.WPF.RichTextBox.C1RichTextBoxToolbar.#ctor">
          <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.-ctor.html#C1_WPF_RichTextBox_C1RichTextBoxToolbar__ctor">C1RichTextBoxToolbar()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.html">C1RichTextBoxToolbar</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_C1RichTextBoxToolbar_RichTextBoxProperty" data-uid="C1.WPF.RichTextBox.C1RichTextBoxToolbar.RichTextBoxProperty">
          <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.RichTextBoxProperty.html">RichTextBoxProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.RichTextBox.html#C1_WPF_RichTextBox_C1RichTextBoxToolbar_RichTextBox">RichTextBox</a> dependency property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1RichTextBoxToolbar_SpellCheckerProperty" data-uid="C1.WPF.RichTextBox.C1RichTextBoxToolbar.SpellCheckerProperty">
          <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.SpellCheckerProperty.html">SpellCheckerProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.SpellChecker.html#C1_WPF_RichTextBox_C1RichTextBoxToolbar_SpellChecker">SpellChecker</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_C1RichTextBoxToolbar_FontFamilies" data-uid="C1.WPF.RichTextBox.C1RichTextBoxToolbar.FontFamilies">
          <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.FontFamilies.html#C1_WPF_RichTextBox_C1RichTextBoxToolbar_FontFamilies">FontFamilies</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of font families available in the toolbar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1RichTextBoxToolbar_FontSizes" data-uid="C1.WPF.RichTextBox.C1RichTextBoxToolbar.FontSizes">
          <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.FontSizes.html#C1_WPF_RichTextBox_C1RichTextBoxToolbar_FontSizes">FontSizes</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of font sizes available in the toolbar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1RichTextBoxToolbar_LineNumberModes" data-uid="C1.WPF.RichTextBox.C1RichTextBoxToolbar.LineNumberModes">
          <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.LineNumberModes.html#C1_WPF_RichTextBox_C1RichTextBoxToolbar_LineNumberModes">LineNumberModes</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of line number modes available in the toolbar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1RichTextBoxToolbar_LineSpacings" data-uid="C1.WPF.RichTextBox.C1RichTextBoxToolbar.LineSpacings">
          <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.LineSpacings.html#C1_WPF_RichTextBox_C1RichTextBoxToolbar_LineSpacings">LineSpacings</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of line spacings available in the toolbar.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1RichTextBoxToolbar_RichTextBox" data-uid="C1.WPF.RichTextBox.C1RichTextBoxToolbar.RichTextBox">
          <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.RichTextBox.html#C1_WPF_RichTextBox_C1RichTextBoxToolbar_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 <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.html">C1RichTextBoxToolbar</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1RichTextBoxToolbar_SpellChecker" data-uid="C1.WPF.RichTextBox.C1RichTextBoxToolbar.SpellChecker">
          <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.SpellChecker.html#C1_WPF_RichTextBox_C1RichTextBoxToolbar_SpellChecker">SpellChecker</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <span class="xref">C1.WPF.ISpellChecker</span> used with the <a class="xref" href="C1.WPF.RichTextBox.C1SpellCheckTool.html">C1SpellCheckTool</a></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_C1RichTextBoxToolbar_ChangeVisualStateCommon_System_Boolean_" data-uid="C1.WPF.RichTextBox.C1RichTextBoxToolbar.ChangeVisualStateCommon(System.Boolean)">
          <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.ChangeVisualStateCommon.html#C1_WPF_RichTextBox_C1RichTextBoxToolbar_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_C1RichTextBoxToolbar_OnAfterApplyTemplate" data-uid="C1.WPF.RichTextBox.C1RichTextBoxToolbar.OnAfterApplyTemplate">
          <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.OnAfterApplyTemplate.html#C1_WPF_RichTextBox_C1RichTextBoxToolbar_OnAfterApplyTemplate">OnAfterApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1RichTextBoxToolbar_OnApplyTemplate" data-uid="C1.WPF.RichTextBox.C1RichTextBoxToolbar.OnApplyTemplate">
          <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.OnApplyTemplate.html#C1_WPF_RichTextBox_C1RichTextBoxToolbar_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Builds the visual tree for the <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.html">C1RichTextBoxToolbar</a> control when a new template is applied.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1RichTextBoxToolbar_OnPropertyChanged_System_Windows_DependencyPropertyChangedEventArgs_" data-uid="C1.WPF.RichTextBox.C1RichTextBoxToolbar.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)">
          <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.OnPropertyChanged.html#C1_WPF_RichTextBox_C1RichTextBoxToolbar_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>
      <tr>
        <td id="C1_WPF_RichTextBox_C1RichTextBoxToolbar_SetCustomDefaultValues" data-uid="C1.WPF.RichTextBox.C1RichTextBoxToolbar.SetCustomDefaultValues">
          <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.SetCustomDefaultValues.html#C1_WPF_RichTextBox_C1RichTextBoxToolbar_SetCustomDefaultValues">SetCustomDefaultValues()</a>
        </td>
        <td class="markdown level1 summary"></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_C1RichTextBoxToolbar_IsMouseOverChanged" data-uid="C1.WPF.RichTextBox.C1RichTextBoxToolbar.IsMouseOverChanged">
          <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.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>
      <tr>
        <td id="C1_WPF_RichTextBox_C1RichTextBoxToolbar_MessageBoxShowing" data-uid="C1.WPF.RichTextBox.C1RichTextBoxToolbar.MessageBoxShowing">
          <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.MessageBoxShowing.html">MessageBoxShowing</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when showing message box</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
