# C1.WPF.RichTextBox.C1ToggleButtonTool-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_RichTextBox_C1ToggleButtonTool_1" data-uid="C1.WPF.RichTextBox.C1ToggleButtonTool`1" class="text-break">C1ToggleButtonTool&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Abstract base class for toggle buttons in <a class="xref" href="C1.WPF.RichTextBox.C1RichTextBoxToolbar.html">C1RichTextBoxToolbar</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"><span class="xref">C1ToggleButtonTool&lt;T&gt;</span></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1BoldTool.html">C1BoldTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1BottomAlignTool.html">C1BottomAlignTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1CenterAlignTool.html">C1CenterAlignTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1DraftViewTool.html">C1DraftViewTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1ItalicTool.html">C1ItalicTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1JustifyTool.html">C1JustifyTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1LeftAlignTool.html">C1LeftAlignTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1ListTool.html">C1ListTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1PrintViewTool.html">C1PrintViewTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1RightAlignTool.html">C1RightAlignTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1ShowGridlinesTool.html">C1ShowGridlinesTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1StrikethroughTool.html">C1StrikethroughTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1SubscriptTool.html">C1SubscriptTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1SuperscriptTool.html">C1SuperscriptTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1TextWrappingTool.html">C1TextWrappingTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1TopAlignTool.html">C1TopAlignTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1UnderlineTool.html">C1UnderlineTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1VerticalCenterAlignTool.html">C1VerticalCenterAlignTool</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.WPF.RichTextBox.IUpdateableTool.html">IUpdateableTool</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_C1ToggleButtonTool_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class C1ToggleButtonTool&lt;T&gt; : C1ToolbarToggleButton, IUpdateableTool</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class C1ToggleButtonTool(Of T)
    Inherits C1ToolbarToggleButton
    Implements IUpdateableTool</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td><p>The type of values toggled by the button.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_C1ToggleButtonTool_1__ctor" data-uid="C1.WPF.RichTextBox.C1ToggleButtonTool`1.#ctor">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleButtonTool-1.-ctor.html#C1_WPF_RichTextBox_C1ToggleButtonTool_1__ctor">C1ToggleButtonTool()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.RichTextBox.C1ToggleButtonTool-1.html">C1ToggleButtonTool&lt;T&gt;</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_C1ToggleButtonTool_1_RichTextBoxProperty" data-uid="C1.WPF.RichTextBox.C1ToggleButtonTool`1.RichTextBoxProperty">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleButtonTool-1.RichTextBoxProperty.html">RichTextBoxProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RichTextBox.C1ToggleButtonTool-1.RichTextBox.html#C1_WPF_RichTextBox_C1ToggleButtonTool_1_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_C1ToggleButtonTool_1_CheckedValue" data-uid="C1.WPF.RichTextBox.C1ToggleButtonTool`1.CheckedValue">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleButtonTool-1.CheckedValue.html#C1_WPF_RichTextBox_C1ToggleButtonTool_1_CheckedValue">CheckedValue</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ToggleButtonTool_1_IsAlignTool" data-uid="C1.WPF.RichTextBox.C1ToggleButtonTool`1.IsAlignTool">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleButtonTool-1.IsAlignTool.html#C1_WPF_RichTextBox_C1ToggleButtonTool_1_IsAlignTool">IsAlignTool</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ToggleButtonTool_1_RichTextBox" data-uid="C1.WPF.RichTextBox.C1ToggleButtonTool`1.RichTextBox">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleButtonTool-1.RichTextBox.html#C1_WPF_RichTextBox_C1ToggleButtonTool_1_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> this tool edits.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ToggleButtonTool_1_UnCheckedValue" data-uid="C1.WPF.RichTextBox.C1ToggleButtonTool`1.UnCheckedValue">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleButtonTool-1.UnCheckedValue.html#C1_WPF_RichTextBox_C1ToggleButtonTool_1_UnCheckedValue">UnCheckedValue</a>
        </td>
        <td class="markdown level1 summary"></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_C1ToggleButtonTool_1_GetValue_C1_WPF_RichTextBox_Documents_C1TextRange_" data-uid="C1.WPF.RichTextBox.C1ToggleButtonTool`1.GetValue(C1.WPF.RichTextBox.Documents.C1TextRange)">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleButtonTool-1.GetValue.html#C1_WPF_RichTextBox_C1ToggleButtonTool_1_GetValue_C1_WPF_RichTextBox_Documents_C1TextRange_">GetValue(C1TextRange)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ToggleButtonTool_1_OnClick" data-uid="C1.WPF.RichTextBox.C1ToggleButtonTool`1.OnClick">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleButtonTool-1.OnClick.html#C1_WPF_RichTextBox_C1ToggleButtonTool_1_OnClick">OnClick()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ToggleButtonTool_1_SetValue_C1_WPF_RichTextBox_Documents_C1TextRange__0_" data-uid="C1.WPF.RichTextBox.C1ToggleButtonTool`1.SetValue(C1.WPF.RichTextBox.Documents.C1TextRange,`0)">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleButtonTool-1.SetValue.html#C1_WPF_RichTextBox_C1ToggleButtonTool_1_SetValue_C1_WPF_RichTextBox_Documents_C1TextRange__0_">SetValue(C1TextRange, T)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ToggleButtonTool_1_Update" data-uid="C1.WPF.RichTextBox.C1ToggleButtonTool`1.Update">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleButtonTool-1.Update.html#C1_WPF_RichTextBox_C1ToggleButtonTool_1_Update">Update()</a>
        </td>
        <td class="markdown level1 summary"><p>Method called when the tool should update its state.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
