FromMarkup
Contents
 [
        
            Hide
        ]
    FromMarkup(string)
Static factory, that creates an instance of EditableDocument from specified HTML markup
public static EditableDocument FromMarkup(string newHtmlContent)
| Parameter | Type | Description | 
|---|---|---|
| newHtmlContent | String | String, that contains raw HTML markup, that should be parsed. Cannot be NULL, empty or invalid. | 
Return Value
New non-null instance of EditableDocument
Exceptions
| exception | condition | 
|---|---|
| ArgumentException | String with input raw HTML markup cannot be null or empty | 
Remarks
THis static method is useful for creating the EditableDocument instance from the single-string HTML markup, where all resources are embedded into it with base64 encoding.
See Also
- class EditableDocument
- namespace GroupDocs.Editor
- assembly GroupDocs.Editor
FromMarkup(string, IEnumerable<IHtmlResource>)
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
- interface IHtmlResource
- class EditableDocument
- namespace GroupDocs.Editor
- assembly GroupDocs.Editor