# C1.WPF.SpellChecker.UserDictionary.Load

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_SpellChecker_UserDictionary_Load_" data-uid="C1.WPF.SpellChecker.UserDictionary.Load*">Load Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_SpellChecker_UserDictionary_Load_" data-uid="C1.WPF.SpellChecker.UserDictionary.Load*"></a>
<h4 id="C1_WPF_SpellChecker_UserDictionary_Load_System_IO_Stream_" data-uid="C1.WPF.SpellChecker.UserDictionary.Load(System.IO.Stream)">Load(Stream)</h4>
<div class="markdown level1 summary"><p>Loads the dictionary from a UTF-8 stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override bool Load(Stream stream)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function Load(stream As Stream) 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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>True if the dictionary was loaded successfully, false otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="C1.WPF.SpellChecker.SpellDictionaryBase.Load.html#C1_WPF_SpellChecker_SpellDictionaryBase_Load_System_IO_Stream_">SpellDictionaryBase.Load(Stream)</a></div>
<h5 id="C1_WPF_SpellChecker_UserDictionary_Load_System_IO_Stream__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If the dictionary fails to load, this method returns false. In this case,
you can check the value of the dictionary's <a class="xref" href="C1.WPF.SpellChecker.SpellDictionaryBase.State.html#C1_WPF_SpellChecker_SpellDictionaryBase_State">State</a> property to determine
why the file failed to load.</p>
</div>


<a id="C1_WPF_SpellChecker_UserDictionary_Load_" data-uid="C1.WPF.SpellChecker.UserDictionary.Load*"></a>
<h4 id="C1_WPF_SpellChecker_UserDictionary_Load_System_String_" data-uid="C1.WPF.SpellChecker.UserDictionary.Load(System.String)">Load(string)</h4>
<div class="markdown level1 summary"><p>Loads the dictionary from a file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override bool Load(string fileName)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function Load(fileName As String) 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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>The dictionary file.</p>
</td>
    </tr>
  </tbody>
</table>
<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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p>True if the dictionary was loaded successfully, false otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="C1.WPF.SpellChecker.SpellDictionaryBase.Load.html#C1_WPF_SpellChecker_SpellDictionaryBase_Load_System_String_">SpellDictionaryBase.Load(string)</a></div>
<h5 id="C1_WPF_SpellChecker_UserDictionary_Load_System_String__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If the dictionary fails to load, this method returns false. In this case,
you can check the value of the dictionary's <a class="xref" href="C1.WPF.SpellChecker.SpellDictionaryBase.State.html#C1_WPF_SpellChecker_SpellDictionaryBase_State">State</a> property to determine
why the file failed to load.</p>
</div>
</div>
