HtmlTable

HtmlTable

Przegląd

HtmlTable jest klasą w Aspose.Cells FOSS dla TypeScript.

Ta klasa deklaruje 10 metod dla obiektów HtmlTable w programach TypeScript. Dostępne metody to: addHeader, addRow, constructor, getCellStyle, mergeTables, parse, parseAll, setCssClasses, toHtml, toWorksheet. Publiczne członkowie są dostępni dla każdej aplikacji TypeScript po zainstalowaniu pakietu Aspose.Cells FOSS dla TypeScript. Właściwości: caption, colWidths, color, cols, count, headers oraz 6 kolejnych.

Właściwości

NazwaTypDostępOpis
cols: numberOdczytPobiera cols.
count: numberOdczytZwraca liczbę.
height: numberOdczytPobiera wysokość.
caption`stringundefined`Odczyt
headersstring[]OdczytPobiera nagłówki.
rowsstring[][]OdczytPobiera wiersze.
colWidthsnumber[]OdczytPobiera szerokości kolumn.
rowHeightsnumber[]OdczytPobiera wysokości wierszy.
hiddenRowsboolean[]OdczytPobiera ukryte wiersze.
picturesPictureInfo[]OdczytZwraca obrazy.
style: stringOdczytPobiera styl.
color: stringOdczytPobiera kolor.
style: stringOdczytPobiera styl.
color: stringOdczytPobiera kolor.

Metody

SygnaturaOpis
constructor(caption: string)Wywołuje konstruktor(caption) na tej instancji HtmlTable.
setCssClasses(classes: Map<string, CellStyle>)Ustawia wartość klas css.
getCellStyle(row: number, col: number) → `CellStyleundefined`
addHeader(header: string)Wywołuje addHeader(header) na tej instancji HtmlTable.
addRow(row: string[])Wywołuje addRow(row) na tej instancji HtmlTable.
parseAll(html: string, cssClasses: Map<string, CellStyle>) → HtmlTable[]Wywołuje parseAll(html, cssClasses) na tej instancji HtmlTable.
toWorksheet(worksheet: Worksheet, options: HtmlParseOptions)Wywołania toWorksheet(worksheet, options) na tej instancji HtmlTable.
parse(html: string, cssClasses: Map<string, CellStyle>) → HtmlTableWywołania parse(html, cssClasses) na tej instancji HtmlTable.
mergeTables(tables: HtmlTable[]) → HtmlTableWywołania mergeTables(tables) na tej instancji HtmlTable.
toHtml(options: HtmlSaveOptions) → stringWywołania toHtml(options) na tej instancji HtmlTable.

Zobacz także

 Polski