# C1.Win.SpellChecker.UserDictionary

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_SpellChecker_UserDictionary" data-uid="C1.Win.SpellChecker.UserDictionary" class="text-break">UserDictionary Class
</h1>
  <div class="markdown level0 summary"><p>Class that contains a list of additional words and methods for managing the list.</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="C1.Win.SpellChecker.SpellDictionaryBase.html">SpellDictionaryBase</a></div>
    <div class="level2"><span class="xref">UserDictionary</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.Win.SpellChecker.ISpellDictionary.html">ISpellDictionary</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </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_UserDictionary_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class UserDictionary : SpellDictionaryBase, ISpellDictionary, IComponent, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class UserDictionary
    Inherits SpellDictionaryBase
    Implements ISpellDictionary, IComponent, IDisposable</code></pre>
  </div>
  <h5 id="C1_Win_SpellChecker_UserDictionary_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>This class is used to store user dictionaries. It provides methods for adding and
removing words, as well as saving the dictionary.</p>
</div>
  <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_Win_SpellChecker_UserDictionary_FileName" data-uid="C1.Win.SpellChecker.UserDictionary.FileName">
          <a class="xref" href="C1.Win.SpellChecker.UserDictionary.FileName.html#C1_Win_SpellChecker_UserDictionary_FileName">FileName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the file that contains the dictionary.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_SpellChecker_UserDictionary_Words" data-uid="C1.Win.SpellChecker.UserDictionary.Words">
          <a class="xref" href="C1.Win.SpellChecker.UserDictionary.Words.html#C1_Win_SpellChecker_UserDictionary_Words">Words</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an array with all the words in the user dictionary.</p>
</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_Win_SpellChecker_UserDictionary_AddWord_System_String_" data-uid="C1.Win.SpellChecker.UserDictionary.AddWord(System.String)">
          <a class="xref" href="C1.Win.SpellChecker.UserDictionary.AddWord.html#C1_Win_SpellChecker_UserDictionary_AddWord_System_String_">AddWord(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a word to the dictionary.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_SpellChecker_UserDictionary_Clear" data-uid="C1.Win.SpellChecker.UserDictionary.Clear">
          <a class="xref" href="C1.Win.SpellChecker.UserDictionary.Clear.html#C1_Win_SpellChecker_UserDictionary_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears the dictionary removing all words in it.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_SpellChecker_UserDictionary_Contains_System_String_" data-uid="C1.Win.SpellChecker.UserDictionary.Contains(System.String)">
          <a class="xref" href="C1.Win.SpellChecker.UserDictionary.Contains.html#C1_Win_SpellChecker_UserDictionary_Contains_System_String_">Contains(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether the dictionary contains a given word.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_SpellChecker_UserDictionary_GetFileName_System_Boolean_" data-uid="C1.Win.SpellChecker.UserDictionary.GetFileName(System.Boolean)">
          <a class="xref" href="C1.Win.SpellChecker.UserDictionary.GetFileName.html#C1_Win_SpellChecker_UserDictionary_GetFileName_System_Boolean_">GetFileName(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the fully qualified name of the file that contains the user dictionary.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_SpellChecker_UserDictionary_Load" data-uid="C1.Win.SpellChecker.UserDictionary.Load">
          <a class="xref" href="C1.Win.SpellChecker.UserDictionary.Load.html#C1_Win_SpellChecker_UserDictionary_Load">Load()</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the dictionary from a file.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_SpellChecker_UserDictionary_RemoveWord_System_String_" data-uid="C1.Win.SpellChecker.UserDictionary.RemoveWord(System.String)">
          <a class="xref" href="C1.Win.SpellChecker.UserDictionary.RemoveWord.html#C1_Win_SpellChecker_UserDictionary_RemoveWord_System_String_">RemoveWord(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes a word from the dictionary.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_SpellChecker_UserDictionary_Save" data-uid="C1.Win.SpellChecker.UserDictionary.Save">
          <a class="xref" href="C1.Win.SpellChecker.UserDictionary.Save.html#C1_Win_SpellChecker_UserDictionary_Save">Save()</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the dictionary back to a file.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_SpellChecker_UserDictionary_BadWordAdded" data-uid="C1.Win.SpellChecker.UserDictionary.BadWordAdded">
          <a class="xref" href="C1.Win.SpellChecker.UserDictionary.BadWordAdded.html">BadWordAdded</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when bad word was added to the user dictionary.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
