HtmlDocument

HtmlDocument

개요

HtmlDocument은 Aspose.Cells FOSS의 TypeScript용 클래스입니다.

이 클래스는 TypeScript 프로그램에서 HtmlDocument 객체를 위해 6개의 메서드를 선언합니다. 사용 가능한 메서드에는 getOriginalAnchor, load, loadOriginalAnchors, parse, toExcel, toWorkbook가 포함됩니다. 공개 멤버는 Aspose.Cells FOSS for TypeScript 패키지를 설치한 후 모든 TypeScript 애플리케이션에서 접근할 수 있습니다. 속성: color, cssClasses, filePath, html, images, name, 그리고 추가 3개.

속성

이름유형액세스설명
name: string읽기이름을 가져옵니다.
html: string읽기html을 가져옵니다.
cssClasses: Map<string, CellStyle>읽기css 클래스들을 가져옵니다.
filePath: string읽기파일 경로를 가져옵니다.
style: string읽기스타일을 가져옵니다.
color: string읽기색상을 가져옵니다.
style: string읽기스타일을 가져옵니다.
color: string읽기색상을 가져옵니다.
tablesHtmlTable[]읽기테이블을 가져옵니다.
htmlstring읽기html을 가져옵니다.
images: ImageInfo[]읽기이미지를 가져옵니다.
shapes: any[]읽기모양을 가져옵니다.

메서드

시그니처설명
load(filePath: string) → Promise<HtmlDocument>이 HtmlDocument 인스턴스에서 load(filePath)를 호출합니다.
loadOriginalAnchors(filePath: string) → Promise<void>이 HtmlDocument 인스턴스에서 loadOriginalAnchors(filePath)를 호출합니다.
getOriginalAnchor(name: string) → `ShapeAnchorundefined`
parse(html: string) → HtmlDocument이 HtmlDocument 인스턴스에서 parse(html)를 호출합니다.
toWorkbook(options: HtmlParseOptions) → Workbook이 HtmlDocument 인스턴스에서 toWorkbook(options)를 호출합니다.
toExcel(filePath: string, options: HtmlParseOptions)이 HtmlDocument 인스턴스에서 toExcel(filePath, options)를 호출합니다.

참조

 한국어