EditableDocumentFromMarkup Method |
Static factory, that creates an instance of EditableDocument from specified HTML markup and a set of corresponding linked resources
Namespace: GroupDocs.EditorAssembly: GroupDocs.Editor (in GroupDocs.Editor.dll) Version: 21.1.1.0
Syntaxpublic static EditableDocument FromMarkup(
string newHtmlContent,
IEnumerable<IHtmlResource> resources
)
Public Shared Function FromMarkup (
newHtmlContent As String,
resources As IEnumerable(Of IHtmlResource)
) As EditableDocument
public:
static EditableDocument^ FromMarkup(
String^ newHtmlContent,
IEnumerable<IHtmlResource^>^ resources
)
static member FromMarkup :
newHtmlContent : string *
resources : IEnumerable<IHtmlResource> -> EditableDocument
Parameters
- newHtmlContent
- Type: SystemString
String, that contains raw HTML markup, that should be parsed. Cannot be NULL, empty or invalid. - resources
- Type: System.Collections.GenericIEnumerableIHtmlResource
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
Type:
EditableDocumentNew non-null instance of EditableDocument
See Also