# C1.WPF.RichTextBox.Documents.HtmlFilter.ConvertToDocument

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_WPF_RichTextBox_Documents_HtmlFilter_ConvertToDocument_" data-uid="C1.WPF.RichTextBox.Documents.HtmlFilter.ConvertToDocument*">ConvertToDocument Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_WPF_RichTextBox_Documents_HtmlFilter_ConvertToDocument_" data-uid="C1.WPF.RichTextBox.Documents.HtmlFilter.ConvertToDocument*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_HtmlFilter_ConvertToDocument_System_String_" data-uid="C1.WPF.RichTextBox.Documents.HtmlFilter.ConvertToDocument(System.String)">ConvertToDocument(string)</h4>
<div class="markdown level1 summary"><p>Parses a string into a <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Document.html">C1Document</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1Document ConvertToDocument(string html)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ConvertToDocument(html As String) As C1Document</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">html</span></td>
      <td><p>String containing the HTML document.</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="C1.WPF.RichTextBox.Documents.C1Document.html">C1Document</a></td>
      <td><p>A <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Document.html">C1Document</a> that represents the given string.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_RichTextBox_Documents_HtmlFilter_ConvertToDocument_" data-uid="C1.WPF.RichTextBox.Documents.HtmlFilter.ConvertToDocument*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_HtmlFilter_ConvertToDocument_System_String_System_Uri_" data-uid="C1.WPF.RichTextBox.Documents.HtmlFilter.ConvertToDocument(System.String,System.Uri)">ConvertToDocument(string, Uri)</h4>
<div class="markdown level1 summary"><p>Parses a string into a <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Document.html">C1Document</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1Document ConvertToDocument(string html, Uri baseUri)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ConvertToDocument(html As String, baseUri As Uri) As C1Document</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">html</span></td>
      <td><p>String containing the HTML document.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Uri</span></td>
      <td><span class="parametername">baseUri</span></td>
      <td><p>Base <span class="xref">System.Uri</span> used for resolving image references.</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="C1.WPF.RichTextBox.Documents.C1Document.html">C1Document</a></td>
      <td><p>A <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Document.html">C1Document</a> that represents the given string.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_WPF_RichTextBox_Documents_HtmlFilter_ConvertToDocument_" data-uid="C1.WPF.RichTextBox.Documents.HtmlFilter.ConvertToDocument*"></a>
<h4 id="C1_WPF_RichTextBox_Documents_HtmlFilter_ConvertToDocument_C1_WPF_RichTextBox_Documents_C1HtmlDocument_" data-uid="C1.WPF.RichTextBox.Documents.HtmlFilter.ConvertToDocument(C1.WPF.RichTextBox.Documents.C1HtmlDocument)">ConvertToDocument(C1HtmlDocument)</h4>
<div class="markdown level1 summary"><p>Converts a <a class="xref" href="C1.WPF.RichTextBox.Documents.C1HtmlDocument.html">C1HtmlDocument</a> to a <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Document.html">C1Document</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1Document ConvertToDocument(C1HtmlDocument htmlDoc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ConvertToDocument(htmlDoc As C1HtmlDocument) As C1Document</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="C1.WPF.RichTextBox.Documents.C1HtmlDocument.html">C1HtmlDocument</a></td>
      <td><span class="parametername">htmlDoc</span></td>
      <td><p>A <a class="xref" href="C1.WPF.RichTextBox.Documents.C1HtmlDocument.html">C1HtmlDocument</a>.</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="C1.WPF.RichTextBox.Documents.C1Document.html">C1Document</a></td>
      <td><p>A <a class="xref" href="C1.WPF.RichTextBox.Documents.C1Document.html">C1Document</a> that represents the given <a class="xref" href="C1.WPF.RichTextBox.Documents.C1HtmlDocument.html">C1HtmlDocument</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
