Word.Interfaces.TableCellUpdateData interface

用于更新 TableCell 对象上的数据的接口,用于 在 中使用 tableCell.set({ ... })

属性

body

获取单元格的 body 对象。

columnWidth

指定单元格列的宽度(以磅为单位)。 此方法适用于一致的 table。

horizontalAlignment

指定单元格的水平对齐方式。 该值可以是“Left”、“Centered”、“Right”或“Justified”。

shadingColor

指定单元格的底纹颜色。 按“#RRGGBB”格式或使用颜色名称指定颜色。

value

指定单元格的文本。

verticalAlignment

指定单元格的垂直对齐方式。 该值可以是“Top”、“Center”或“Bottom”。

属性详细信息

body

获取单元格的 body 对象。

body?: Word.Interfaces.BodyUpdateData;

属性值

注解

[ API 集:WordApi 1.3 ]

columnWidth

指定单元格列的宽度(以磅为单位)。 此方法适用于一致的 table。

columnWidth?: number;

属性值

number

注解

[ API 集:WordApi 1.3 ]

horizontalAlignment

指定单元格的水平对齐方式。 该值可以是“Left”、“Centered”、“Right”或“Justified”。

horizontalAlignment?: Word.Alignment | "Mixed" | "Unknown" | "Left" | "Centered" | "Right" | "Justified";

属性值

Word.Alignment | "Mixed" | "Unknown" | "Left" | "Centered" | "Right" | "Justified"

注解

[ API 集:WordApi 1.3 ]

shadingColor

指定单元格的底纹颜色。 按“#RRGGBB”格式或使用颜色名称指定颜色。

shadingColor?: string;

属性值

string

注解

[ API 集:WordApi 1.3 ]

value

指定单元格的文本。

value?: string;

属性值

string

注解

[ API 集:WordApi 1.3 ]

verticalAlignment

指定单元格的垂直对齐方式。 该值可以是“Top”、“Center”或“Bottom”。

verticalAlignment?: Word.VerticalAlignment | "Mixed" | "Top" | "Center" | "Bottom";

属性值

Word.VerticalAlignment | "Mixed" | "Top" | "Center" | "Bottom"

注解

[ API 集:WordApi 1.3 ]