Word.Interfaces.TableRowLoadOptions interface
表示Word文档中的行。
注解
属性
| $all |
|
| cell |
获取行中的单元格数。 |
| font | 获取字体。 使用此关系可获取并设置字体名称、大小、颜色和其他属性。 |
| horizontal |
指定行中每个单元格的水平对齐方式。 该值可以是 |
| is |
检查该行是否为标题行。 若要设置标题行数,请对 |
| parent |
获取父表。 |
| preferred |
指定行的首选高度(以磅为单位)。 |
| row |
获取其父表中的行索引。 |
| shading |
指定底纹颜色。 按“#RRGGBB”格式或使用颜色名称指定颜色。 |
| values | 指定行中的文本值,作为 2D JavaScript 数组。 |
| vertical |
指定行中单元格的垂直对齐方式。 该值可以是 |
属性详细信息
$all
$all为加载选项指定将加载所有标量属性 ((例如Range.address) ,但不加载导航属性 (如 Range.format.fill.color) )。
$all?: boolean;
属性值
boolean
cellCount
font
获取字体。 使用此关系可获取并设置字体名称、大小、颜色和其他属性。
font?: Word.Interfaces.FontLoadOptions;
属性值
注解
horizontalAlignment
指定行中每个单元格的水平对齐方式。 该值可以是 left、centered、right 或 。justified
horizontalAlignment?: boolean;
属性值
boolean
注解
isHeader
检查该行是否为标题行。 若要设置标题行数,请对 Table 对象使用 headerRowCount 。
isHeader?: boolean;
属性值
boolean
注解
parentTable
获取父表。
parentTable?: Word.Interfaces.TableLoadOptions;
属性值
注解
preferredHeight
rowIndex
shadingColor
values
verticalAlignment
指定行中单元格的垂直对齐方式。 该值可以是 top、 center或 bottom。
verticalAlignment?: boolean;
属性值
boolean