# C1.WPF.SpellChecker.BadWordEventArgs

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_SpellChecker_BadWordEventArgs" data-uid="C1.WPF.SpellChecker.BadWordEventArgs" class="text-break">BadWordEventArgs Class
</h1>
  <div class="markdown level0 summary"><p>Provides data for the <a class="xref" href="C1.WPF.SpellChecker.C1SpellChecker.BadWordFound.html">BadWordFound</a> event.</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.eventargs">EventArgs</a></div>
    <div class="level2"><span class="xref">BadWordEventArgs</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.SpellChecker.html">C1.WPF.SpellChecker</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.SpellChecker.4.6.2.dll</h6>
  <h5 id="C1_WPF_SpellChecker_BadWordEventArgs_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class BadWordEventArgs : EventArgs</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class BadWordEventArgs
    Inherits EventArgs</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_SpellChecker_BadWordEventArgs__ctor_System_Windows_Controls_Control_System_Windows_Controls_Control_C1_WPF_SpellChecker_CharRange_C1_WPF_SpellChecker_CharRangeList_" data-uid="C1.WPF.SpellChecker.BadWordEventArgs.#ctor(System.Windows.Controls.Control,System.Windows.Controls.Control,C1.WPF.SpellChecker.CharRange,C1.WPF.SpellChecker.CharRangeList)">
          <a class="xref" href="C1.WPF.SpellChecker.BadWordEventArgs.-ctor.html#C1_WPF_SpellChecker_BadWordEventArgs__ctor_System_Windows_Controls_Control_System_Windows_Controls_Control_C1_WPF_SpellChecker_CharRange_C1_WPF_SpellChecker_CharRangeList_">BadWordEventArgs(Control, Control, CharRange, CharRangeList)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.SpellChecker.BadWordEventArgs.html">BadWordEventArgs</a>.</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_SpellChecker_BadWordEventArgs_BadWord" data-uid="C1.WPF.SpellChecker.BadWordEventArgs.BadWord">
          <a class="xref" href="C1.WPF.SpellChecker.BadWordEventArgs.BadWord.html#C1_WPF_SpellChecker_BadWordEventArgs_BadWord">BadWord</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="C1.WPF.SpellChecker.CharRange.html">CharRange</a> object that contains the bad word and its location within
the text being spell-checked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_SpellChecker_BadWordEventArgs_BadWordList" data-uid="C1.WPF.SpellChecker.BadWordEventArgs.BadWordList">
          <a class="xref" href="C1.WPF.SpellChecker.BadWordEventArgs.BadWordList.html#C1_WPF_SpellChecker_BadWordEventArgs_BadWordList">BadWordList</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="C1.WPF.SpellChecker.CharRangeList.html">CharRangeList</a> that contains all errors detected in the text.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_SpellChecker_BadWordEventArgs_Cancel" data-uid="C1.WPF.SpellChecker.BadWordEventArgs.Cancel">
          <a class="xref" href="C1.WPF.SpellChecker.BadWordEventArgs.Cancel.html#C1_WPF_SpellChecker_BadWordEventArgs_Cancel">Cancel</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether this bad word should be ignored by the <a class="xref" href="C1.WPF.SpellChecker.C1SpellChecker.html">C1SpellChecker</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_SpellChecker_BadWordEventArgs_Control" data-uid="C1.WPF.SpellChecker.BadWordEventArgs.Control">
          <a class="xref" href="C1.WPF.SpellChecker.BadWordEventArgs.Control.html#C1_WPF_SpellChecker_BadWordEventArgs_Control">Control</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a reference to the control that is being spell-checked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_SpellChecker_BadWordEventArgs_Dialog" data-uid="C1.WPF.SpellChecker.BadWordEventArgs.Dialog">
          <a class="xref" href="C1.WPF.SpellChecker.BadWordEventArgs.Dialog.html#C1_WPF_SpellChecker_BadWordEventArgs_Dialog">Dialog</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a reference to the <a class="xref" href="C1.WPF.SpellChecker.ISpellDialog.html">ISpellDialog</a> that is being used to spell-check a control.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
