InputHtmlDocument Class
Encapsulates one HTML document, which is obtained from Document->HTML conversion and contains HTML markup and all related resources like CSS, images and fonts.
Inheritance Hierarchy
SystemObject
  GroupDocs.EditorInputHtmlDocument

Namespace: GroupDocs.Editor
Assembly: GroupDocs.Editor (in GroupDocs.Editor.dll) Version: 19.5
Syntax
public sealed class InputHtmlDocument : IAuxDisposable, 
	IDisposable

The InputHtmlDocument type exposes the following members.

Properties
  NameDescription
Public propertyCss
Returns a list of CSS resources
Public propertyFontResources
Allows to obtain or specify external font resources, which are used by this HTML document
Public propertyImageResources
Allows to obtain or specify external image resources (raster images), which are used by this HTML document
Public propertyIsDisposed
Determines whether this HTML document is already disposed or not
Methods
  NameDescription
Public methodDispose
Disposes this HTML document instance, disposing its content and making its methods and properties non-working
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetBodyContent
Returns a body of the HTML document (content between opening and closing BODY tags without these tags) as a string.
Public methodGetBodyContent(String)
Returns a body of the HTML document (content between opening and closing BODY tags without these tags) as a string, where links to the external resources contain specified prefix.
Public methodGetContent
Returns overall content of the HTML document as a string.
Public methodGetContent(String)
Returns overall content of the HTML document as a string, where links to the external resources contain specified prefix.
Public methodGetCssContent
Returns content of all external stylesheets as a list of strings, where one string represents one stylesheet. Returns empty list, if there is no CSS for this document.
Public methodGetCssContent(String)
Returns content of all external stylesheets as a list of strings, where one string represents one stylesheet. Specified prefix will be applied to every link to the external resource in every resultant stylesheet. Returns empty list, if there is no CSS for this document.
Public methodGetEmbeddedHtml
Returns all content of this HTML document with all related resources in a form of a single string, where all resources are embedded inside the HTML markup in a base64-encoded form.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodSave(String)
Saves this HTML document to the file on specified path, where HTML markup will be stored, and to the accompanying folder with resources. It is allowed to disable saving of stylesheets.
Public methodSave(String, Boolean)
Saves this HTML document to the file on specified path, where HTML markup will be stored, and to the accompanying folder with resources. It is allowed to disable saving of stylesheets.
Public methodSave(String, String)
Saves this HTML document to the file on specified path, where HTML markup will be stored, and to the accompanying folder with resources, which is located on specified path.
Public methodSave(String, String, Boolean)
Saves this HTML document to the file on specified path, where HTML markup will be stored, and to the accompanying folder with resources. It is allowed to disable saving of stylesheets.
Public methodSave(String, String, String, Boolean)
Saves this HTML document to the file on specified path, where HTML markup will be stored, and to the accompanying folder with resources, which is located on specified path. It is allowed to disable saving of stylesheets.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Events
  NameDescription
Public eventDisposed
Event, which occurs when this HTML document is disposed, right after finishing the disposing process
Remarks
The instances of this class are returned to the user during forward conversion (from document of any supported type to HTML). This class contains a set of useful methods and properties, which are required to "fill" the WYSIWYG HTML-editor.
See Also