[]
        
(Showing Draft Content)

C1.WPF.RichTextBox.Documents.HtmlFilter.ConvertToDocument

ConvertToDocument Method

ConvertToDocument(string)

Parses a string into a C1Document.

Declaration
public C1Document ConvertToDocument(string html)
Public Function ConvertToDocument(html As String) As C1Document
Parameters
Type Name Description
string html

String containing the HTML document.

Returns
Type Description
C1Document

A C1Document that represents the given string.

ConvertToDocument(string, Uri)

Parses a string into a C1Document.

Declaration
public C1Document ConvertToDocument(string html, Uri baseUri)
Public Function ConvertToDocument(html As String, baseUri As Uri) As C1Document
Parameters
Type Name Description
string html

String containing the HTML document.

Uri baseUri

Base Uri used for resolving image references.

Returns
Type Description
C1Document

A C1Document that represents the given string.

ConvertToDocument(C1HtmlDocument)

Converts a C1HtmlDocument to a C1Document.

Declaration
public C1Document ConvertToDocument(C1HtmlDocument htmlDoc)
Public Function ConvertToDocument(htmlDoc As C1HtmlDocument) As C1Document
Parameters
Type Name Description
C1HtmlDocument htmlDoc

A C1HtmlDocument.

Returns
Type Description
C1Document

A C1Document that represents the given C1HtmlDocument.