# C1.WPF.SpellChecker.UserDictionary

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_SpellChecker_UserDictionary" data-uid="C1.WPF.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.WPF.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.WPF.SpellChecker.ISpellDictionary.html">ISpellDictionary</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></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_UserDictionary_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class UserDictionary : SpellDictionaryBase, ISpellDictionary, ICollection&lt;string&gt;, IEnumerable&lt;string&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class UserDictionary
    Inherits SpellDictionaryBase
    Implements ISpellDictionary, ICollection(Of String), IEnumerable(Of String), IEnumerable</code></pre>
  </div>
  <h5 id="C1_WPF_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="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_WPF_SpellChecker_UserDictionary_AddWord_System_String_" data-uid="C1.WPF.SpellChecker.UserDictionary.AddWord(System.String)">
          <a class="xref" href="C1.WPF.SpellChecker.UserDictionary.AddWord.html#C1_WPF_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_WPF_SpellChecker_UserDictionary_Clear" data-uid="C1.WPF.SpellChecker.UserDictionary.Clear">
          <a class="xref" href="C1.WPF.SpellChecker.UserDictionary.Clear.html#C1_WPF_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_WPF_SpellChecker_UserDictionary_Contains_System_String_" data-uid="C1.WPF.SpellChecker.UserDictionary.Contains(System.String)">
          <a class="xref" href="C1.WPF.SpellChecker.UserDictionary.Contains.html#C1_WPF_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_WPF_SpellChecker_UserDictionary_Load_System_IO_Stream_" data-uid="C1.WPF.SpellChecker.UserDictionary.Load(System.IO.Stream)">
          <a class="xref" href="C1.WPF.SpellChecker.UserDictionary.Load.html#C1_WPF_SpellChecker_UserDictionary_Load_System_IO_Stream_">Load(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the dictionary from a UTF-8 stream.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_SpellChecker_UserDictionary_Load_System_String_" data-uid="C1.WPF.SpellChecker.UserDictionary.Load(System.String)">
          <a class="xref" href="C1.WPF.SpellChecker.UserDictionary.Load.html#C1_WPF_SpellChecker_UserDictionary_Load_System_String_">Load(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the dictionary from a file.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_SpellChecker_UserDictionary_LoadFromIsolatedStorage_System_String_System_IO_IsolatedStorage_IsolatedStorageScope_System_Type_System_Type_" data-uid="C1.WPF.SpellChecker.UserDictionary.LoadFromIsolatedStorage(System.String,System.IO.IsolatedStorage.IsolatedStorageScope,System.Type,System.Type)">
          <a class="xref" href="C1.WPF.SpellChecker.UserDictionary.LoadFromIsolatedStorage.html#C1_WPF_SpellChecker_UserDictionary_LoadFromIsolatedStorage_System_String_System_IO_IsolatedStorage_IsolatedStorageScope_System_Type_System_Type_">LoadFromIsolatedStorage(string, IsolatedStorageScope, Type, Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the dictionary from a compressed file in isolated storage.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_SpellChecker_UserDictionary_RemoveWord_System_String_" data-uid="C1.WPF.SpellChecker.UserDictionary.RemoveWord(System.String)">
          <a class="xref" href="C1.WPF.SpellChecker.UserDictionary.RemoveWord.html#C1_WPF_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_WPF_SpellChecker_UserDictionary_Save_System_IO_Stream_" data-uid="C1.WPF.SpellChecker.UserDictionary.Save(System.IO.Stream)">
          <a class="xref" href="C1.WPF.SpellChecker.UserDictionary.Save.html#C1_WPF_SpellChecker_UserDictionary_Save_System_IO_Stream_">Save(Stream)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the user dictionary into a UTF-8 encoded stream.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_SpellChecker_UserDictionary_SaveToIsolatedStorage_System_String_System_IO_IsolatedStorage_IsolatedStorageScope_System_Type_System_Type_" data-uid="C1.WPF.SpellChecker.UserDictionary.SaveToIsolatedStorage(System.String,System.IO.IsolatedStorage.IsolatedStorageScope,System.Type,System.Type)">
          <a class="xref" href="C1.WPF.SpellChecker.UserDictionary.SaveToIsolatedStorage.html#C1_WPF_SpellChecker_UserDictionary_SaveToIsolatedStorage_System_String_System_IO_IsolatedStorage_IsolatedStorageScope_System_Type_System_Type_">SaveToIsolatedStorage(string, IsolatedStorageScope, Type, Type)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the dictionary into a compressed file in isolated storage.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
