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
| Nazwa | Typ | Dostęp | Opis |
|---|---|---|---|
cols | : number | Odczyt | Pobiera cols. |
count | : number | Odczyt | Zwraca liczbę. |
height | : number | Odczyt | Pobiera wysokość. |
caption | `string | undefined` | Odczyt |
headers | string[] | Odczyt | Pobiera nagłówki. |
rows | string[][] | Odczyt | Pobiera wiersze. |
colWidths | number[] | Odczyt | Pobiera szerokości kolumn. |
rowHeights | number[] | Odczyt | Pobiera wysokości wierszy. |
hiddenRows | boolean[] | Odczyt | Pobiera ukryte wiersze. |
pictures | PictureInfo[] | Odczyt | Zwraca obrazy. |
style | : string | Odczyt | Pobiera styl. |
color | : string | Odczyt | Pobiera kolor. |
style | : string | Odczyt | Pobiera styl. |
color | : string | Odczyt | Pobiera kolor. |
Metody
| Sygnatura | Opis |
|---|---|
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) → `CellStyle | undefined` |
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>) → HtmlTable | Wywołania parse(html, cssClasses) na tej instancji HtmlTable. |
mergeTables(tables: HtmlTable[]) → HtmlTable | Wywołania mergeTables(tables) na tej instancji HtmlTable. |
toHtml(options: HtmlSaveOptions) → string | Wywołania toHtml(options) na tej instancji HtmlTable. |