FromMarkup

EditableDocument.FromMarkup method

Static factory, that creates an instance of EditableDocument from specified HTML markup and a set of corresponding linked resources

public static EditableDocument FromMarkup(string newHtmlContent, 
    IEnumerable<IHtmlResource> resources)
Parameter Type Description
newHtmlContent String String, that contains raw HTML markup, that should be parsed. Cannot be NULL, empty or invalid.
resources IEnumerable`1 Collection of all resources (images, stylesheets, fonts), that are used in the HTML-document, specified in newHtmlContent parameter. May be absent (NULL or empty collection).

Return Value

New non-null instance of EditableDocument

Exceptions

exception condition
ArgumentException String with input raw HTML markup cannot be null or empty

See Also