Word.Interfaces.TableCellUpdateData interface
用于更新对象上的 TableCell 数据的接口,用于 在 中使用 tableCell.set({ ... })。
属性
| body | 获取 |
| column |
指定单元格列的宽度(以磅为单位)。 此方法适用于一致的 table。 |
| horizontal |
指定单元格的水平对齐方式。 该值可以是 |
| shading |
指定单元格的底纹颜色。 按“#RRGGBB”格式或使用颜色名称指定颜色。 |
| value | 指定单元格的文本。 |
| vertical |
指定单元格的垂直对齐方式。 该值可以是 |
属性详细信息
body
获取 Body 单元格的 对象。
body?: Word.Interfaces.BodyUpdateData;
属性值
注解
columnWidth
horizontalAlignment
指定单元格的水平对齐方式。 该值可以是 left、centered、right 或 。justified
horizontalAlignment?: Word.Alignment | "Mixed" | "Unknown" | "Left" | "Centered" | "Right" | "Justified";
属性值
Word.Alignment | "Mixed" | "Unknown" | "Left" | "Centered" | "Right" | "Justified"
注解
shadingColor
value
verticalAlignment
指定单元格的垂直对齐方式。 该值可以是 top、 center或 bottom。
verticalAlignment?: Word.VerticalAlignment | "Mixed" | "Top" | "Center" | "Bottom";
属性值
Word.VerticalAlignment | "Mixed" | "Top" | "Center" | "Bottom"