# C1.Win.SpellChecker.C1SpellChecker.ShowSuggestions

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Win_SpellChecker_C1SpellChecker_ShowSuggestions" data-uid="C1.Win.SpellChecker.C1SpellChecker.ShowSuggestions" class="text-break">ShowSuggestions Event
</h1>
<div class="markdown level0 summary"><p>Occurs when suggestions is about to show in the spell dialog or in the spell context menu.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.SpellChecker.html">C1.Win.SpellChecker</a></h6>
<h6><strong>Assembly</strong>: C1.Win.SpellChecker.4.8.dll</h6>
<h5 id="C1_Win_SpellChecker_C1SpellChecker_ShowSuggestions_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event SuggestionsEventHandler ShowSuggestions</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event ShowSuggestions As SuggestionsEventHandler</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Win.SpellChecker.SuggestionsEventHandler.html">SuggestionsEventHandler</a></td>
      <td>Occurs when suggestions is about to show in the spell dialog or in the spell context menu.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_SpellChecker_C1SpellChecker_ShowSuggestions_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>Use this method to customize the suggestion list. Suggestions can be added, removed or rearranged.</p>
<p>If the suggestion list contains more items than <a class="xref" href="C1.Win.SpellChecker.SpellOptions.MaxSuggestionsInContextMenu.html#C1_Win_SpellChecker_SpellOptions_MaxSuggestionsInContextMenu">MaxSuggestionsInContextMenu</a>, then the additional items won't be shown in the spell context menu.</p>
<p>This event does not occur when user calls <a class="xref" href="C1.Win.SpellChecker.C1SpellChecker.GetSuggestions.html#C1_Win_SpellChecker_C1SpellChecker_GetSuggestions_System_String_System_Int32_">GetSuggestions(string, int)</a> method.</p>
</div>
<h5 id="C1_Win_SpellChecker_C1SpellChecker_ShowSuggestions_examples"><strong>Examples</strong></h5>
<p>This example checks the misspelled word and inserts one or more suggestions at the top of the list if need.</p>
<pre><code class="lang-csharp">private void c1SpellChecker1_ShowSuggestions(object sender, C1.Win.C1SpellChecker.SuggestionsEventArgs e)
{
   if (e.Word.StartsWith("o"))
       e.Suggestions.Insert(0, "one new suggestion");
   if (e.Word.Contains("i"))
       e.Suggestions.Insert(0, "is suggestion");
   if (e.Word.StartsWith("tex"))
       e.Suggestions.Insert(0, "text suggestion");
}</code></pre>

</div>
