Aspose.Html

The Aspose.Html namespace contains classes and methods to manipulate HTML documents, whether simple or complex and on the fly. Aspose.HTML for .NET allows developers to Insert, Remove, Replace HTML nodes, extract CSS style information, Navigate through HTML document either by NodeIterator, TreeWalker that are provided by Traversal Specifications, XPath or CSS selector queries. It also offers the scripting which allows to manipulate HTML DOM via JavaScript. As well as HTML, this API also provides the capabilities to load EPUB and MHTML. Aspose APIs are famous for their inter file format conversion features and this API also provides the capabilities to load HTML file and render the output in PDF, XPS and raster image formats including JPEG, PNG, BMP and TIFF.

Classes

Class Description
ArrayBuffer The ArrayBuffer object is used to represent a generic, fixed-length raw binary data buffer.
Configuration Represents the configuration context object that is used to set up the environment settings for the application. Managing configuration you can override document style applying a custom user stylesheet, or handle any web requests from the application as well as to configure scripts policy. Details are in Environment Configuration guide.
Float32Array Represents an array of 32-bit floating point numbers (corresponding to the C float data type) in the platform byte order.
Float64Array Represents an array of 64-bit floating point numbers (corresponding to the C float data type) in the platform byte order.
FontsSettings Represents fonts handling settings.
HTMLAddressElement The address element. See the ADDRESS element definition in HTML 4.01.
HTMLAnchorElement The anchor element. See the A element definition in HTML 4.01.
HTMLAppletElement An embedded Java applet. See the APPLET element definition in HTML 4.01. This element is deprecated in HTML 4.01.
HTMLAreaElement Client-side image map area definition. See the AREA element definition in HTML 4.01.
HTMLBaseElement Document base URI [IETF RFC 2396]. See the BASE element definition in HTML 4.01.
HTMLBaseFontElement Base font. See the BASEFONT element definition in HTML 4.01. This element is deprecated in HTML 4.01.
HTMLBodyElement The HTML document body. This element is always present in the DOM API, even if the tags are not present in the source document. See the BODY element definition in HTML 4.01.
HTMLBRElement Force a line break. See the BR element definition in HTML 4.01.
HTMLButtonElement Push button. See the BUTTON element definition in HTML 4.01.
HTMLCanvasElement The HTMLCanvasElement interface provides properties and methods for manipulating the layout and presentation of canvas elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface.
HTMLDataListElement The datalist element represents a set of option elements that represent predefined options for other controls. See also the HTML 5.2 W3C Recommendation.
HTMLDirectoryElement Directory list. See the DIR element definition in HTML 4.01. This element is deprecated in HTML 4.01.
HTMLDivElement Generic block container. See the DIV element definition in HTML 4.01.
HTMLDListElement Definition list. See the DL element definition in HTML 4.01.
HTMLDocument Represents an HTML document. All top level HTML objects are added to this object. This class represents the HTML page as what we see in browser. All forms, tables, scripts, … are added to the HTML page via the interfaces of this class. HTMLDocument is html implementation of most general Document interface and both are core or root point of DOM - Document Object Model. These concepts are in full accordance with officical web development basis or standards. For the purposes of web development, you can generally think of HTMLDocument as an alias for Document, upon which HTMLDocument is based.
HTMLElement All HTML element interfaces derive from this class. Elements that only expose the HTML core attributes are represented by the base HTMLElement interface. These elements are as follows: special: SUB, SUP, SPAN, BDOfont: TT, I, B, U, S, STRIKE, BIG, SMALL phrase: EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ACRONYM, ABBRlist: DD, DTNOFRAMES, NOSCRIPTADDRESS, CENTERThe style attribute of an HTML element is accessible through the ElementCSSInlineStyle interface which is defined in the CSS module [DOM Level 2 Style Sheets and CSS].
HTMLFieldSetElement Organizes form controls into logical groups. See the FIELDSET element definition in HTML 4.01.
HTMLFontElement Local change to font. See the FONT element definition in HTML 4.01. This element is deprecated in HTML 4.01.
HTMLFormElement The FORM element encompasses behavior similar to a collection and an element. It provides direct access to the contained form controls as well as the attributes of the form element. See the FORM element definition in HTML 4.01.
HTMLFrameElement Create a frame. See the FRAME element definition in HTML 4.01.
HTMLFrameSetElement Create a grid of frames. See the FRAMESET element definition in HTML 4.01.
HTMLHeadElement Document head information. See the HEAD element definition in HTML 4.01.
HTMLHeadingElement For the H1 to H6 elements. See the H1 element definition in HTML 4.01.
HTMLHRElement Create a horizontal rule. See the HR element definition in HTML 4.01.
HTMLHtmlElement Root of an HTML document. See the HTML element definition in HTML 4.01.
HTMLIFrameElement Inline subwindows. See the IFRAME element definition in HTML 4.01.
HTMLImageElement Embedded image. See the IMG element definition in HTML 4.01.
HTMLInputElement Form control. Depending upon the environment in which the page is being viewed, the value property may be read-only for the file upload input type. For the “password” input type, the actual value returned may be masked to prevent unauthorized use. See the INPUT element definition in [HTML 4.01].See also the Document object Model (DOM) Level 2 HTML Specification.
HTMLIsIndexElement This element is used for single-line text input. See the ISINDEX element definition in HTML 4.01. This element is deprecated in HTML 4.01.
HTMLLabelElement Form field label text. See the LABEL element definition in HTML 4.01.
HTMLLegendElement Provides a caption for a FIELDSET grouping. See the LEGEND element definition in HTML 4.01.
HTMLLIElement List item. See the LI element definition in HTML 4.01.
HTMLLinkElement The LINK element specifies a link to an external resource, and defines this document’s relationship to that resource (or vice versa). See the LINK element definition in HTML 4.01 (see also the LinkStyle interface in the StyleSheet module [DOM Level 2 Style Sheets and CSS]).
HTMLMapElement Client-side image map. See the MAP element definition in HTML 4.01.
HTMLMenuElement Menu list. See the MENU element definition in HTML 4.01. This element is deprecated in HTML 4.01.
HTMLMetaElement This contains generic meta-information about the document. See the META element definition in HTML 4.01.
HTMLModElement Notice of modification to part of a document. See the INS and DEL element definitions in HTML 4.01.
HTMLNoScriptElement Script statements. See the NOSCRIPT element definition in HTML 4.01.
HTMLObjectElement Generic embedded object.In principle, all properties on the object element are read-write but in some environments some properties may be read-only once the underlying object is instantiated. See the OBJECT element definition in [HTML 4.01].
HTMLOListElement Ordered list. See the OL element definition in HTML 4.01.
HTMLOptGroupElement Group options together in logical subdivisions. See the OPTGROUP element definition in HTML 4.01.
HTMLOptionElement A selectable choice. See the OPTION element definition in HTML 4.01.
HTMLParagraphElement Paragraphs. See the P element definition in HTML 4.01.
HTMLParamElement Parameters fed to the OBJECT element. See the PARAM element definition in HTML 4.01.
HTMLPreElement Preformatted text. See the PRE element definition in HTML 4.01.
HTMLQuoteElement For the Q and BLOCKQUOTE elements. See the Q element definition in HTML 4.01.
HTMLScriptElement Script statements. See the SCRIPT element definition in HTML 4.01.
HTMLSelectElement The select element allows the selection of an option. The contained options can be directly accessed through the select element as a collection. See the SELECT element definition in HTML 4.01.
HTMLStyleElement Style information. See the STYLE element definition in HTML 4.01, the CSS module [DOM Level 2 Style Sheets and CSS] and the LinkStyle interface in the StyleSheets module [DOM Level 2 Style Sheets and CSS].
HTMLTableCaptionElement Table caption See the CAPTION element definition in HTML 4.01.
HTMLTableCellElement The object used to represent the TH and TDelements. See the TD element definition in HTML 4.01.
HTMLTableColElement Regroups the COL and COLGROUP elements. See the COL element definition in HTML 4.01.
HTMLTableElement The create* and delete* methods on the table allow authors to construct and modify tables. [HTML 4.01] specifies that only one of each of the CAPTION, THEAD, and TFOOT elements may exist in a table. Therefore, if one exists, and the createTHead() or createTFoot() method is called, the method returns the existing THead or TFoot element. See the TABLE element definition in HTML 4.01.
HTMLTableRowElement A row in a table. See the TR element definition in HTML 4.01.
HTMLTableSectionElement The THEAD, TFOOT, and TBODYelements.
HTMLTemplateElement The template element
HTMLTextAreaElement Multi-line text field. See the TEXTAREA element definition in HTML 4.01.
HTMLTitleElement The title element. See the TITLE element definition in HTML 4.01.
HTMLUListElement Unordered list. See the UL element definition in HTML 4.01.
HTMLUnknownElement The Unknown html element.
Int16Array Represents an array of twos-complement 16-bit signed integers in the platform byte order.
Int32Array Represents an array of twos-complement 32-bit signed integers in the platform byte order.
Int8Array Represents an array of twos-complement 8-bit signed integers.
License Provides methods to license the component.
Metered Provides methods to set metered key.
MimeType Represents an Internet Media Types
PlatformException Represents the base class for all exceptions that may occur during the application execution.
TypedArray TypedArray objects present an array-like view of an underlying binary data buffer.
TypedArray<T> TypedArray objects present an array-like view of an underlying binary data buffer.
Uint16Array Represents an array of twos-complement 16-bit unsigned integers in the platform byte order.
Uint32Array Represents an array of twos-complement 32-bit unsigned integers in the platform byte order.
Uint8Array Represents an array of twos-complement 8-bit unsigned integers.
Uint8ClampedArray Represents an array of 8-bit unsigned integers clamped to 0-255; if you specified a value that is out of the range of [0,255], 0 or 255 will be set instead;
Url Provides an object representation of a universal identifier (URL).

Interfaces

Interface Description
IDocumentFragmentElement Represents common interface for all Document Fragment elements.
IFormAssociatedElement A form-associated element can have a relationship with a form element, which is called the element’s form owner. If a form-associated element is not associated with a form element, its form owner is said to be null. A form-associated element is, by default, associated with its nearest ancestor form element (as described below), but, if it is reassociateable, may have a form attribute specified to override this.
IHTMLFormElement Represents a base interface that should be implemented by HTML Form Elements.
IHTMLOptionsCollection An HTMLOptionsCollection is a list of nodes representing HTML option element. An individual node may be accessed by either ordinal index or the node’s name or id attributes. Collections in the HTML DOM are assumed to be live meaning that they are automatically updated when the underlying document is changed.
IUrlSearchParams Provides methods to work with URLs query string.

Enumeration

Enumeration Description
Sandbox A sandboxing flag set is a set of zero or more of the following flags, which are used to restrict the abilities that potentially untrusted resources.