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

NazwaTypDostępOpis
name: stringOdczytPobiera nazwę.
html: stringOdczytPobiera html.
cssClasses: Map<string, CellStyle>OdczytPobiera klasy css.
filePath: stringOdczytZwraca ścieżkę pliku.
style: stringOdczytZwraca styl.
color: stringOdczytZwraca kolor.
style: stringOdczytPobiera styl.
color: stringOdczytPobiera kolor.
tablesHtmlTable[]OdczytPobiera tabele.
htmlstringOdczytPobiera html.
images: ImageInfo[]OdczytPobiera obrazy.
shapes: any[]OdczytPobiera kształty.

Metody

SygnaturaOpis
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) → `ShapeAnchorundefined`
parse(html: string) → HtmlDocumentWywołuje parse(html) na tej instancji HtmlDocument.
toWorkbook(options: HtmlParseOptions) → WorkbookWywołania toWorkbook(options) na tej instancji HtmlDocument.
toExcel(filePath: string, options: HtmlParseOptions)Wywołania toExcel(filePath, options) na tej instancji HtmlDocument.

Zobacz także

 Polski