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 | 읽기 | 색상을 가져옵니다. |
tables | HtmlTable[] | 읽기 | 테이블을 가져옵니다. |
html | string | 읽기 | html을 가져옵니다. |
images | : ImageInfo[] | 읽기 | 이미지를 가져옵니다. |
shapes | : any[] | 읽기 | 모양을 가져옵니다. |
메서드
| 시그니처 | 설명 |
|---|---|
load(filePath: string) → Promise<HtmlDocument> | 이 HtmlDocument 인스턴스에서 load(filePath)를 호출합니다. |
loadOriginalAnchors(filePath: string) → Promise<void> | 이 HtmlDocument 인스턴스에서 loadOriginalAnchors(filePath)를 호출합니다. |
getOriginalAnchor(name: string) → `ShapeAnchor | undefined` |
parse(html: string) → HtmlDocument | 이 HtmlDocument 인스턴스에서 parse(html)를 호출합니다. |
toWorkbook(options: HtmlParseOptions) → Workbook | 이 HtmlDocument 인스턴스에서 toWorkbook(options)를 호출합니다. |
toExcel(filePath: string, options: HtmlParseOptions) | 이 HtmlDocument 인스턴스에서 toExcel(filePath, options)를 호출합니다. |