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
| Name | Type | Access | Description |
|---|---|---|---|
cols | : number | Read | Gets the cols. |
count | : number | Read | Gets the count. |
height | : number | Read | Gets the height. |
caption | string | undefined | Read | Gets the caption. |
headers | string[] | Read | Gets the headers. |
rows | string[][] | Read | Gets the rows. |
colWidths | number[] | Read | Gets the col widths. |
rowHeights | number[] | Read | Gets the row heights. |
hiddenRows | boolean[] | Read | Gets the hidden rows. |
pictures | PictureInfo[] | Read | Gets the pictures. |
style | : string | Read | Gets the style. |
color | : string | Read | Gets the color. |
style | : string | Read | Gets the style. |
color | : string | Read | Gets the color. |
Methods
| Signature | Description |
|---|---|
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 | undefined | Calls 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>) → HtmlTable | Calls parse(html, cssClasses) on this HtmlTable instance. |
mergeTables(tables: HtmlTable[]) → HtmlTable | Calls mergeTables(tables) on this HtmlTable instance. |
toHtml(options: HtmlSaveOptions) → string | Calls toHtml(options) on this HtmlTable instance. |