PowerPoint.Interfaces.TableCellData interface

一个描述通过调用 tableCell.toJSON()返回的数据的接口。

注解

使用方

属性

columnCount

获取此单元格跨越的表列数。 将大于或等于 1。

columnIndex

获取表中单元格的从零开始的列索引。

horizontalAlignment

指定表格单元格中文本的水平对齐方式。 如果单元格文本包含不同的对齐方式,则返回 null 。

indentLevel

指定表格单元格中文本的缩进级别。 单元格文本包含不同的缩进级别时返回 null 。

rowCount

获取此单元格跨越的表行数。 将大于或等于 1。

rowIndex

获取表中单元格的从零开始的行索引。

text

指定表单元格的文本内容。

textRuns

将表格单元格的内容指定为 PowerPoint.TextRun 对象的数组。 每个 TextRun 对象表示一个或多个具有相同字体属性的字符序列。

verticalAlignment

指定表格单元格中文本的垂直对齐方式。

属性详细信息

columnCount

获取此单元格跨越的表列数。 将大于或等于 1。

columnCount?: number;

属性值

number

注解

API 集:PowerPointApi 1.8

columnIndex

获取表中单元格的从零开始的列索引。

columnIndex?: number;

属性值

number

注解

API 集:PowerPointApi 1.8

horizontalAlignment

指定表格单元格中文本的水平对齐方式。 如果单元格文本包含不同的对齐方式,则返回 null 。

horizontalAlignment?: PowerPoint.ParagraphHorizontalAlignment | "Left" | "Center" | "Right" | "Justify" | "JustifyLow" | "Distributed" | "ThaiDistributed" | null;

属性值

PowerPoint.ParagraphHorizontalAlignment | "Left" | "Center" | "Right" | "Justify" | "JustifyLow" | "Distributed" | "ThaiDistributed" | null

注解

API 集:PowerPointApi 1.9

indentLevel

指定表格单元格中文本的缩进级别。 单元格文本包含不同的缩进级别时返回 null 。

indentLevel?: number | null;

属性值

number | null

注解

API 集:PowerPointApi 1.9

rowCount

获取此单元格跨越的表行数。 将大于或等于 1。

rowCount?: number;

属性值

number

注解

API 集:PowerPointApi 1.8

rowIndex

获取表中单元格的从零开始的行索引。

rowIndex?: number;

属性值

number

注解

API 集:PowerPointApi 1.8

text

指定表单元格的文本内容。

text?: string;

属性值

string

注解

API 集:PowerPointApi 1.8

textRuns

将表格单元格的内容指定为 PowerPoint.TextRun 对象的数组。 每个 TextRun 对象表示一个或多个具有相同字体属性的字符序列。

textRuns?: PowerPoint.TextRun[];

属性值

注解

API 集:PowerPointApi 1.9

verticalAlignment

指定表格单元格中文本的垂直对齐方式。

verticalAlignment?: PowerPoint.TextVerticalAlignment | "Top" | "Middle" | "Bottom" | "TopCentered" | "MiddleCentered" | "BottomCentered";

属性值

PowerPoint.TextVerticalAlignment | "Top" | "Middle" | "Bottom" | "TopCentered" | "MiddleCentered" | "BottomCentered"

注解

API 集:PowerPointApi 1.9