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

ClassDescription
ArrayBufferThe ArrayBuffer object is used to represent a generic, fixed-length raw binary data buffer.
ConfigurationRepresents 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.
Float32ArrayRepresents an array of 32-bit floating point numbers (corresponding to the C float data type) in the platform byte order.
Float64ArrayRepresents an array of 64-bit floating point numbers (corresponding to the C float data type) in the platform byte order.
FontsSettingsRepresents fonts handling settings.
HTMLAddressElementThe address element. See the ADDRESS element definition in HTML 4.01.
HTMLAnchorElementThe anchor element. See the A element definition in HTML 4.01.
HTMLAppletElementAn embedded Java applet. See the APPLET element definition in HTML 4.01. This element is deprecated in HTML 4.01.
HTMLAreaElementClient-side image map area definition. See the AREA element definition in HTML 4.01.
HTMLBaseElementDocument base URI [IETF RFC 2396]. See the BASE element definition in HTML 4.01.
HTMLBaseFontElementBase font. See the BASEFONT element definition in HTML 4.01. This element is deprecated in HTML 4.01.
HTMLBodyElementThe 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.
HTMLBRElementForce a line break. See the BR element definition in HTML 4.01.
HTMLButtonElementPush button. See the BUTTON element definition in HTML 4.01.
HTMLCanvasElementThe 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.
HTMLDataListElementThe datalist element represents a set of option elements that represent predefined options for other controls. See also the HTML 5.2 W3C Recommendation.
HTMLDirectoryElementDirectory list. See the DIR element definition in HTML 4.01. This element is deprecated in HTML 4.01.
HTMLDivElementGeneric block container. See the DIV element definition in HTML 4.01.
HTMLDListElementDefinition list. See the DL element definition in HTML 4.01.
HTMLDocumentRepresents 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.
HTMLElementAll 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].
HTMLFieldSetElementOrganizes form controls into logical groups. See the FIELDSET element definition in HTML 4.01.
HTMLFontElementLocal change to font. See the FONT element definition in HTML 4.01. This element is deprecated in HTML 4.01.
HTMLFormElementThe 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.
HTMLFrameElementCreate a frame. See the FRAME element definition in HTML 4.01.
HTMLFrameSetElementCreate a grid of frames. See the FRAMESET element definition in HTML 4.01.
HTMLHeadElementDocument head information. See the HEAD element definition in HTML 4.01.
HTMLHeadingElementFor the H1 to H6 elements. See the H1 element definition in HTML 4.01.
HTMLHRElementCreate a horizontal rule. See the HR element definition in HTML 4.01.
HTMLHtmlElementRoot of an HTML document. See the HTML element definition in HTML 4.01.
HTMLIFrameElementInline subwindows. See the IFRAME element definition in HTML 4.01.
HTMLImageElementEmbedded image. See the IMG element definition in HTML 4.01.
HTMLInputElementForm 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.
HTMLIsIndexElementThis 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.
HTMLLabelElementForm field label text. See the LABEL element definition in HTML 4.01.
HTMLLegendElementProvides a caption for a FIELDSET grouping. See the LEGEND element definition in HTML 4.01.
HTMLLIElementList item. See the LI element definition in HTML 4.01.
HTMLLinkElementThe 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]).
HTMLMapElementClient-side image map. See the MAP element definition in HTML 4.01.
HTMLMenuElementMenu list. See the MENU element definition in HTML 4.01. This element is deprecated in HTML 4.01.
HTMLMetaElementThis contains generic meta-information about the document. See the META element definition in HTML 4.01.
HTMLModElementNotice of modification to part of a document. See the INS and DEL element definitions in HTML 4.01.
HTMLNoScriptElementScript statements. See the NOSCRIPT element definition in HTML 4.01.
HTMLObjectElementGeneric 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].
HTMLOListElementOrdered list. See the OL element definition in HTML 4.01.
HTMLOptGroupElementGroup options together in logical subdivisions. See the OPTGROUP element definition in HTML 4.01.
HTMLOptionElementA selectable choice. See the OPTION element definition in HTML 4.01.
HTMLParagraphElementParagraphs. See the P element definition in HTML 4.01.
HTMLParamElementParameters fed to the OBJECT element. See the PARAM element definition in HTML 4.01.
HTMLPreElementPreformatted text. See the PRE element definition in HTML 4.01.
HTMLQuoteElementFor the Q and BLOCKQUOTE elements. See the Q element definition in HTML 4.01.
HTMLScriptElementScript statements. See the SCRIPT element definition in HTML 4.01.
HTMLSelectElementThe 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.
HTMLStyleElementStyle 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].
HTMLTableCaptionElementTable caption See the CAPTION element definition in HTML 4.01.
HTMLTableCellElementThe object used to represent the TH and TDelements. See the TD element definition in HTML 4.01.
HTMLTableColElementRegroups the COL and COLGROUP elements. See the COL element definition in HTML 4.01.
HTMLTableElementThe 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.
HTMLTableRowElementA row in a table. See the TR element definition in HTML 4.01.
HTMLTableSectionElementThe THEAD, TFOOT, and TBODYelements.
HTMLTemplateElementThe template element
HTMLTextAreaElementMulti-line text field. See the TEXTAREA element definition in HTML 4.01.
HTMLTitleElementThe title element. See the TITLE element definition in HTML 4.01.
HTMLUListElementUnordered list. See the UL element definition in HTML 4.01.
HTMLUnknownElementThe Unknown html element.
Int16ArrayRepresents an array of twos-complement 16-bit signed integers in the platform byte order.
Int32ArrayRepresents an array of twos-complement 32-bit signed integers in the platform byte order.
Int8ArrayRepresents an array of twos-complement 8-bit signed integers.
LicenseProvides methods to license the component.
MeteredProvides methods to set metered key.
MimeTypeRepresents an Internet Media Types
PlatformExceptionRepresents the base class for all exceptions that may occur during the application execution.
TypedArrayTypedArray 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.
Uint16ArrayRepresents an array of twos-complement 16-bit unsigned integers in the platform byte order.
Uint32ArrayRepresents an array of twos-complement 32-bit unsigned integers in the platform byte order.
Uint8ArrayRepresents an array of twos-complement 8-bit unsigned integers.
Uint8ClampedArrayRepresents 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;
UrlProvides an object representation of a universal identifier (URL).

Interfaces

InterfaceDescription
IConfigurationBuilderRepresents a Configuration object builder.
IDocumentFragmentElementRepresents common interface for all Document Fragment elements.
IHTMLFormElementRepresents a base interface that should be implemented by HTML Form Elements.
IHTMLOptionsCollectionAn 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.
IUrlSearchParamsProvides methods to work with URLs query string.

Enumeration

EnumerationDescription
SandboxA 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.