# C1.WPF.RichTextBox.Documents.HtmlFilter.ConvertedToDocument

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_WPF_RichTextBox_Documents_HtmlFilter_ConvertedToDocument" data-uid="C1.WPF.RichTextBox.Documents.HtmlFilter.ConvertedToDocument" class="text-break">ConvertedToDocument Event
</h1>
<div class="markdown level0 summary"><p>Fired when <a class="xref" href="C1.WPF.RichTextBox.Documents.HtmlFilter.html">HtmlFilter</a> has finished converting html to document.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.RichTextBox.Documents.html">C1.WPF.RichTextBox.Documents</a></h6>
<h6><strong>Assembly</strong>: C1.WPF.RichTextBox.4.6.2.dll</h6>
<h5 id="C1_WPF_RichTextBox_Documents_HtmlFilter_ConvertedToDocument_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event EventHandler ConvertedToDocument</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event ConvertedToDocument As EventHandler</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="https://learn.microsoft.com/dotnet/api/system.eventhandler">EventHandler</a></td>
      <td>Fired when  has finished converting html to document.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_WPF_RichTextBox_Documents_HtmlFilter_ConvertedToDocument_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>This event is useful when calling <a class="xref" href="C1.WPF.RichTextBox.Documents.HtmlFilter.ConvertToDocument.html#C1_WPF_RichTextBox_Documents_HtmlFilter_ConvertToDocument_System_String_">ConvertToDocument(string)</a> from a background
thread. HtmlFilter dispatches the initialization of some properties because <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.brush">Brushes</a>,
and other <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.dependencyobject">DependencyObjects</a> cannot be created in a background thread.</p>
</div>
</div>
