# C1.WPF.RichTextBox.C1ToggleItemTool-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_RichTextBox_C1ToggleItemTool_1" data-uid="C1.WPF.RichTextBox.C1ToggleItemTool`1" class="text-break">C1ToggleItemTool&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">C1ToggleItemTool&lt;T&gt;</span></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1ListItemTool.html">C1ListItemTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1SimplifiedBoldTool.html">C1SimplifiedBoldTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1SimplifiedBottomAlignTool.html">C1SimplifiedBottomAlignTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1SimplifiedCenterAlignTool.html">C1SimplifiedCenterAlignTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1SimplifiedDraftViewTool.html">C1SimplifiedDraftViewTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1SimplifiedItalicTool.html">C1SimplifiedItalicTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1SimplifiedJustifyTool.html">C1SimplifiedJustifyTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1SimplifiedLeftAlignTool.html">C1SimplifiedLeftAlignTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1SimplifiedPrintViewTool.html">C1SimplifiedPrintViewTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1SimplifiedRightAlignTool.html">C1SimplifiedRightAlignTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1SimplifiedShowGridlinesTool.html">C1SimplifiedShowGridlinesTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1SimplifiedStrikethroughTool.html">C1SimplifiedStrikethroughTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1SimplifiedSubscriptTool.html">C1SimplifiedSubscriptTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1SimplifiedSuperscriptTool.html">C1SimplifiedSuperscriptTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1SimplifiedTextWrappingTool.html">C1SimplifiedTextWrappingTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1SimplifiedTopAlignTool.html">C1SimplifiedTopAlignTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1SimplifiedUnderlineTool.html">C1SimplifiedUnderlineTool</a></div>
      <div class="level2"><a class="xref" href="C1.WPF.RichTextBox.C1SimplifiedVerticalCenterAlignTool.html">C1SimplifiedVerticalCenterAlignTool</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_C1ToggleItemTool_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class C1ToggleItemTool&lt;T&gt; : C1ToolbarToggleItem, IUpdateableTool</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class C1ToggleItemTool(Of T)
    Inherits C1ToolbarToggleItem
    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_C1ToggleItemTool_1__ctor" data-uid="C1.WPF.RichTextBox.C1ToggleItemTool`1.#ctor">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleItemTool-1.-ctor.html#C1_WPF_RichTextBox_C1ToggleItemTool_1__ctor">C1ToggleItemTool()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.RichTextBox.C1ToggleItemTool-1.html">C1ToggleItemTool&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_C1ToggleItemTool_1_RichTextBoxProperty" data-uid="C1.WPF.RichTextBox.C1ToggleItemTool`1.RichTextBoxProperty">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleItemTool-1.RichTextBoxProperty.html">RichTextBoxProperty</a>
        </td>
        <td class="markdown level1 summary"><p>Identifies the <a class="xref" href="C1.WPF.RichTextBox.C1ToggleItemTool-1.RichTextBox.html#C1_WPF_RichTextBox_C1ToggleItemTool_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_C1ToggleItemTool_1_CheckedValue" data-uid="C1.WPF.RichTextBox.C1ToggleItemTool`1.CheckedValue">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleItemTool-1.CheckedValue.html#C1_WPF_RichTextBox_C1ToggleItemTool_1_CheckedValue">CheckedValue</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ToggleItemTool_1_IsAlignTool" data-uid="C1.WPF.RichTextBox.C1ToggleItemTool`1.IsAlignTool">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleItemTool-1.IsAlignTool.html#C1_WPF_RichTextBox_C1ToggleItemTool_1_IsAlignTool">IsAlignTool</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ToggleItemTool_1_RichTextBox" data-uid="C1.WPF.RichTextBox.C1ToggleItemTool`1.RichTextBox">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleItemTool-1.RichTextBox.html#C1_WPF_RichTextBox_C1ToggleItemTool_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_C1ToggleItemTool_1_UnCheckedValue" data-uid="C1.WPF.RichTextBox.C1ToggleItemTool`1.UnCheckedValue">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleItemTool-1.UnCheckedValue.html#C1_WPF_RichTextBox_C1ToggleItemTool_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_C1ToggleItemTool_1_GetValue_C1_WPF_RichTextBox_Documents_C1TextRange_" data-uid="C1.WPF.RichTextBox.C1ToggleItemTool`1.GetValue(C1.WPF.RichTextBox.Documents.C1TextRange)">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleItemTool-1.GetValue.html#C1_WPF_RichTextBox_C1ToggleItemTool_1_GetValue_C1_WPF_RichTextBox_Documents_C1TextRange_">GetValue(C1TextRange)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ToggleItemTool_1_OnClick" data-uid="C1.WPF.RichTextBox.C1ToggleItemTool`1.OnClick">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleItemTool-1.OnClick.html#C1_WPF_RichTextBox_C1ToggleItemTool_1_OnClick">OnClick()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_C1ToggleItemTool_1_SetValue_C1_WPF_RichTextBox_Documents_C1TextRange__0_" data-uid="C1.WPF.RichTextBox.C1ToggleItemTool`1.SetValue(C1.WPF.RichTextBox.Documents.C1TextRange,`0)">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleItemTool-1.SetValue.html#C1_WPF_RichTextBox_C1ToggleItemTool_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_C1ToggleItemTool_1_Update" data-uid="C1.WPF.RichTextBox.C1ToggleItemTool`1.Update">
          <a class="xref" href="C1.WPF.RichTextBox.C1ToggleItemTool-1.Update.html#C1_WPF_RichTextBox_C1ToggleItemTool_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>
