# C1.WPF.SpellChecker.C1SpellChecker.CheckControlAsync

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_SpellChecker_C1SpellChecker_CheckControlAsync_" data-uid="C1.WPF.SpellChecker.C1SpellChecker.CheckControlAsync*">CheckControlAsync Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_SpellChecker_C1SpellChecker_CheckControlAsync_" data-uid="C1.WPF.SpellChecker.C1SpellChecker.CheckControlAsync*"></a>
<h4 id="C1_WPF_SpellChecker_C1SpellChecker_CheckControlAsync_System_Object_System_Boolean_C1_WPF_SpellChecker_ISpellDialog_" data-uid="C1.WPF.SpellChecker.C1SpellChecker.CheckControlAsync(System.Object,System.Boolean,C1.WPF.SpellChecker.ISpellDialog)">CheckControlAsync(object, bool, ISpellDialog)</h4>
<div class="markdown level1 summary"><p>Shows a spell-checking dialog for an editor control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void CheckControlAsync(object editor, bool fromCursor, ISpellDialog dlg)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub CheckControlAsync(editor As Object, fromCursor As Boolean, dlg As ISpellDialog)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">editor</span></td>
      <td><p>Object that contains the text to be spell-checked.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">fromCursor</span></td>
      <td><p>Whether to check only from the cursor position or the entire control contents.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.WPF.SpellChecker.ISpellDialog.html">ISpellDialog</a></td>
      <td><span class="parametername">dlg</span></td>
      <td><p>Dialog that implements the <a class="xref" href="C1.WPF.SpellChecker.ISpellDialog.html">ISpellDialog</a> interface used for displaying and correcting errors.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_SpellChecker_C1SpellChecker_CheckControlAsync_System_Object_System_Boolean_C1_WPF_SpellChecker_ISpellDialog__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>In order to be spell-checkable, the <code class="paramref">editor</code> must be a
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.textbox">TextBox</a>, <b>C1RichTextBox</b>, or an object that implements the
<a class="xref" href="C1.WPF.SpellChecker.ISpellCheckableEditor.html">ISpellCheckableEditor</a> interface. Other objects are invalid and will
cause this method to throw an exception.</p>
</div>


<a id="C1_WPF_SpellChecker_C1SpellChecker_CheckControlAsync_" data-uid="C1.WPF.SpellChecker.C1SpellChecker.CheckControlAsync*"></a>
<h4 id="C1_WPF_SpellChecker_C1SpellChecker_CheckControlAsync_System_Object_" data-uid="C1.WPF.SpellChecker.C1SpellChecker.CheckControlAsync(System.Object)">CheckControlAsync(object)</h4>
<div class="markdown level1 summary"><p>Shows a spell-checking dialog for an editor control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void CheckControlAsync(object editor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub CheckControlAsync(editor As Object)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">editor</span></td>
      <td><p>Object that contains the text to be spell-checked.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_SpellChecker_C1SpellChecker_CheckControlAsync_System_Object__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>In order to be spell-checkable, the <code class="paramref">editor</code> must be a
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.textbox">TextBox</a>, <b>C1RichTextBox</b>, or an object that implements the
<a class="xref" href="C1.WPF.SpellChecker.ISpellCheckableEditor.html">ISpellCheckableEditor</a> interface. Other objects are invalid and will
cause this method to throw an exception.</p>
</div>


<a id="C1_WPF_SpellChecker_C1SpellChecker_CheckControlAsync_" data-uid="C1.WPF.SpellChecker.C1SpellChecker.CheckControlAsync*"></a>
<h4 id="C1_WPF_SpellChecker_C1SpellChecker_CheckControlAsync_System_Object_System_Boolean_" data-uid="C1.WPF.SpellChecker.C1SpellChecker.CheckControlAsync(System.Object,System.Boolean)">CheckControlAsync(object, bool)</h4>
<div class="markdown level1 summary"><p>Shows a spell-checking dialog for an editor control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void CheckControlAsync(object editor, bool fromCursor)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub CheckControlAsync(editor As Object, fromCursor As Boolean)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">editor</span></td>
      <td><p>Object that contains the text to be spell-checked.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">fromCursor</span></td>
      <td><p>Whether to check only from the cursor position or the entire control contents.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_SpellChecker_C1SpellChecker_CheckControlAsync_System_Object_System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>In order to be spell-checkable, the <code class="paramref">editor</code> must be a
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.textbox">TextBox</a>, <b>C1RichTextBox</b>, or an object that implements the
<a class="xref" href="C1.WPF.SpellChecker.ISpellCheckableEditor.html">ISpellCheckableEditor</a> interface. Other objects are invalid and will
cause this method to throw an exception.</p>
</div>
</div>
