HtmlTable
HtmlTable
Panoramica
HtmlTable è una classe in Aspose.Cells FOSS per TypeScript.
Questa classe dichiara 10 metodi per oggetti HtmlTable nei programmi TypeScript. I metodi disponibili includono: addHeader, addRow, constructor, getCellStyle, mergeTables, parse, parseAll, setCssClasses, toHtml, toWorksheet. I membri pubblici sono accessibili a qualsiasi applicazione TypeScript dopo l’installazione del pacchetto Aspose.Cells FOSS per TypeScript. Proprietà: caption, colWidths, color, cols, count, headers, e altre 6.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
cols | : number | Lettura | Ottiene i cols. |
count | : number | Lettura | Ottiene il conteggio. |
height | : number | Lettura | Ottiene l’altezza. |
caption | `string | undefined` | Lettura |
headers | string[] | Lettura | Ottiene le intestazioni. |
rows | string[][] | Lettura | Ottiene le righe. |
colWidths | number[] | Lettura | Ottiene le larghezze delle colonne. |
rowHeights | number[] | Lettura | Ottiene le altezze delle righe. |
hiddenRows | boolean[] | Lettura | Ottiene le righe nascoste. |
pictures | PictureInfo[] | Lettura | Ottiene le immagini. |
style | : string | Lettura | Ottiene lo stile. |
color | : string | Lettura | Ottiene il colore. |
style | : string | Lettura | Ottiene lo stile. |
color | : string | Lettura | Ottiene il colore. |
Metodi
| Firma | Descrizione |
|---|---|
constructor(caption: string) | Chiama il costruttore(caption) su questa istanza di HtmlTable. |
setCssClasses(classes: Map<string, CellStyle>) | Imposta il valore delle classi css. |
getCellStyle(row: number, col: number) → `CellStyle | undefined` |
addHeader(header: string) | Chiama addHeader(header) su questa istanza HtmlTable. |
addRow(row: string[]) | Chiama addRow(row) su questa istanza HtmlTable. |
parseAll(html: string, cssClasses: Map<string, CellStyle>) → HtmlTable[] | Chiama parseAll(html, cssClasses) su questa istanza HtmlTable. |
toWorksheet(worksheet: Worksheet, options: HtmlParseOptions) | Chiamate a toWorksheet(worksheet, options) su questa istanza di HtmlTable. |
parse(html: string, cssClasses: Map<string, CellStyle>) → HtmlTable | Chiamate a parse(html, cssClasses) su questa istanza di HtmlTable. |
mergeTables(tables: HtmlTable[]) → HtmlTable | Chiamate a mergeTables(tables) su questa istanza di HtmlTable. |
toHtml(options: HtmlSaveOptions) → string | Chiamate a toHtml(options) su questa istanza di HtmlTable. |