HtmlDocument

Overview

HtmlDocument is a class in Aspose.Cells FOSS for TypeScript.

This class declares 6 methods for HtmlDocument objects in TypeScript programs. Available methods include: getOriginalAnchor, load, loadOriginalAnchors, parse, toExcel, toWorkbook. Public members are accessible to any TypeScript application after installing the Aspose.Cells FOSS for TypeScript package. Properties: color, cssClasses, filePath, html, images, name, and 3 more.

Properties

NameTypeAccessDescription
name: stringReadGets the name.
html: stringReadGets the html.
cssClasses: Map<string, CellStyle>ReadGets the css classes.
filePath: stringReadGets the file path.
style: stringReadGets the style.
color: stringReadGets the color.
style: stringReadGets the style.
color: stringReadGets the color.
tablesHtmlTable[]ReadGets the tables.
htmlstringReadGets the html.
images: ImageInfo[]ReadGets the images.
shapes: any[]ReadGets the shapes.

Methods

SignatureDescription
load(filePath: string)Promise<HtmlDocument>Calls load(filePath) on this HtmlDocument instance.
loadOriginalAnchors(filePath: string)Promise<void>Calls loadOriginalAnchors(filePath) on this HtmlDocument instance.
getOriginalAnchor(name: string)ShapeAnchor | undefinedCalls getOriginalAnchor(name) on this HtmlDocument instance.
parse(html: string)HtmlDocumentCalls parse(html) on this HtmlDocument instance.
toWorkbook(options: HtmlParseOptions)WorkbookCalls toWorkbook(options) on this HtmlDocument instance.
toExcel(filePath: string, options: HtmlParseOptions)Calls toExcel(filePath, options) on this HtmlDocument instance.

See Also

 English