HtmlDocument
HtmlDocument
Przegląd
HtmlDocument jest klasą w Aspose.Cells FOSS dla TypeScript.
Ta klasa deklaruje 6 metod dla obiektów HtmlDocument w programach TypeScript. Dostępne metody to: getOriginalAnchor, load, loadOriginalAnchors, parse, toExcel, toWorkbook. Publiczne członki są dostępne dla dowolnej aplikacji TypeScript po zainstalowaniu pakietu Aspose.Cells FOSS dla TypeScript. Właściwości: color, cssClasses, filePath, html, images, name oraz 3 dodatkowe.
Właściwości
| Nazwa | Typ | Dostęp | Opis |
|---|---|---|---|
name | : string | Odczyt | Pobiera nazwę. |
html | : string | Odczyt | Pobiera html. |
cssClasses | : Map<string, CellStyle> | Odczyt | Pobiera klasy css. |
filePath | : string | Odczyt | Zwraca ścieżkę pliku. |
style | : string | Odczyt | Zwraca styl. |
color | : string | Odczyt | Zwraca kolor. |
style | : string | Odczyt | Pobiera styl. |
color | : string | Odczyt | Pobiera kolor. |
tables | HtmlTable[] | Odczyt | Pobiera tabele. |
html | string | Odczyt | Pobiera html. |
images | : ImageInfo[] | Odczyt | Pobiera obrazy. |
shapes | : any[] | Odczyt | Pobiera kształty. |
Metody
| Sygnatura | Opis |
|---|---|
load(filePath: string) → Promise<HtmlDocument> | Wywołuje metodę load(filePath) na tej instancji HtmlDocument. |
loadOriginalAnchors(filePath: string) → Promise<void> | Wywołuje loadOriginalAnchors(filePath) na tej instancji HtmlDocument. |
getOriginalAnchor(name: string) → `ShapeAnchor | undefined` |
parse(html: string) → HtmlDocument | Wywołuje parse(html) na tej instancji HtmlDocument. |
toWorkbook(options: HtmlParseOptions) → Workbook | Wywołania toWorkbook(options) na tej instancji HtmlDocument. |
toExcel(filePath: string, options: HtmlParseOptions) | Wywołania toExcel(filePath, options) na tej instancji HtmlDocument. |