# C1.WPF.SpellChecker.BadWordEventArgs.Cancel

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_SpellChecker_BadWordEventArgs_Cancel_" data-uid="C1.WPF.SpellChecker.BadWordEventArgs.Cancel*">Cancel Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_SpellChecker_BadWordEventArgs_Cancel_" data-uid="C1.WPF.SpellChecker.BadWordEventArgs.Cancel*"></a>
<h4 id="C1_WPF_SpellChecker_BadWordEventArgs_Cancel" data-uid="C1.WPF.SpellChecker.BadWordEventArgs.Cancel">Cancel</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool Cancel { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Cancel As Boolean</code></pre>
</div>
<h5 id="C1_WPF_SpellChecker_BadWordEventArgs_Cancel_remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;If the &lt;xref href=&quot;C1.WPF.SpellChecker.BadWordEventArgs.Dialog&quot; data-throw-if-not-resolved=&quot;false&quot;&gt;&lt;/xref&gt; property is not null, then the error is about to be displayed
</code></pre>
<p>in a spell dialog. Setting the <b>Cancel</b> parameter to true in this case causes the dialog
to skip to the next error.</p>
<p>If the <a class="xref" href="C1.WPF.SpellChecker.BadWordEventArgs.Dialog.html#C1_WPF_SpellChecker_BadWordEventArgs_Dialog">Dialog</a> property is null, then the error was detected in as-you-type
mode and the word is about to be underlined. Setting the <b>Cancel</b> parameter to true in
this case prevents the word from being underlined.</p>
</div>
</div>
