Table
Table
概述
Table 是 Aspose.PDF FOSS 中用于 TypeScript 的类。
重建的表格:一种 rows×cells 模型,包含页面空间四元组和文本,可序列化为 HTML 或 Markdown。
此类为 TypeScript 程序中的 Table 对象声明了 3 个方法。可用的方法包括:constructor、toHtml、toMarkdown。在安装了用于 TypeScript 的 Aspose.PDF FOSS 包后,所有公共成员对任何 TypeScript 应用程序均可访问。属性:angle、page、quad.
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
page | : number | 读取 | 获取页面。 |
quad | : Rect | 读取 | 获取 quad。 |
angle | `` | 读写 | 表格的旋转角度(弧度);轴对齐时为 0。 |
方法
| 签名 | 描述 |
|---|---|
constructor(quad: Rect, rowCount: number, colCount: number, rows: TableRow[], summary: string, pageSpans: { page: number; quad: Rect }[]) | 在此 Table 实例上调用 constructor(quad, rowCount, colCount, rows, summary, pageSpans)。 |
toHtml() → string | 对该 Table 实例调用 toHtml。 |
toMarkdown() → string | 对该 Table 实例调用 toMarkdown。 |