HtmlTable

Overview

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

This class declares 10 methods for HtmlTable objects in TypeScript programs. Available methods include: addHeader, addRow, constructor, getCellStyle, mergeTables, parse, parseAll, setCssClasses, toHtml, toWorksheet. Public members are accessible to any TypeScript application after installing the Aspose.Cells FOSS for TypeScript package. Properties: caption, colWidths, color, cols, count, headers, and 6 more.

Properties

NameTypeAccessDescription
cols: numberReadGets the cols.
count: numberReadGets the count.
height: numberReadGets the height.
captionstring | undefinedReadGets the caption.
headersstring[]ReadGets the headers.
rowsstring[][]ReadGets the rows.
colWidthsnumber[]ReadGets the col widths.
rowHeightsnumber[]ReadGets the row heights.
hiddenRowsboolean[]ReadGets the hidden rows.
picturesPictureInfo[]ReadGets the pictures.
style: stringReadGets the style.
color: stringReadGets the color.
style: stringReadGets the style.
color: stringReadGets the color.

Methods

SignatureDescription
constructor(caption: string)Calls constructor(caption) on this HtmlTable instance.
setCssClasses(classes: Map<string, CellStyle>)Sets the css classes value.
getCellStyle(row: number, col: number)CellStyle | undefinedCalls getCellStyle(row, col) on this HtmlTable instance.
addHeader(header: string)Calls addHeader(header) on this HtmlTable instance.
addRow(row: string[])Calls addRow(row) on this HtmlTable instance.
parseAll(html: string, cssClasses: Map<string, CellStyle>)HtmlTable[]Calls parseAll(html, cssClasses) on this HtmlTable instance.
toWorksheet(worksheet: Worksheet, options: HtmlParseOptions)Calls toWorksheet(worksheet, options) on this HtmlTable instance.
parse(html: string, cssClasses: Map<string, CellStyle>)HtmlTableCalls parse(html, cssClasses) on this HtmlTable instance.
mergeTables(tables: HtmlTable[])HtmlTableCalls mergeTables(tables) on this HtmlTable instance.
toHtml(options: HtmlSaveOptions)stringCalls toHtml(options) on this HtmlTable instance.

See Also

 English