Word.Interfaces.TableStyleData interface
一个接口,用于描述通过调用 tableStyle.toJSON()返回的数据。
属性
| alignment | 指定表与页边距的对齐方式。 |
| allow |
指定格式为格式的表中的行是否跨页分隔。 |
| bottom |
指定要在内容和单元格底部边框之间添加的空间量。 |
| cell |
指定表格样式中单元格之间的间距 () 磅。 |
| column |
当样式指定奇数列或偶数列时,指定条带中的列数。 |
| is |
指定Microsoft Word是否允许跨页拆分指定的表。 |
| left |
指定要在内容和单元格的左边框之间添加的空间量。 |
| left |
指定表格样式中行的左缩进值 (磅) 。 |
| right |
指定要在内容和单元格的右边框之间添加的空间量。 |
| row |
指定当样式指定奇数或偶数行带时,要包括在带中的行数。 |
| table |
指定Microsoft Word表格样式中对单元格进行排序的方向。 |
| top |
指定要在内容和单元格上边框之间添加的空间量。 |
属性详细信息
alignment
指定表与页边距的对齐方式。
alignment?: Word.Alignment | "Mixed" | "Unknown" | "Left" | "Centered" | "Right" | "Justified";
属性值
Word.Alignment | "Mixed" | "Unknown" | "Left" | "Centered" | "Right" | "Justified"
注解
allowBreakAcrossPage
bottomCellMargin
cellSpacing
columnStripe
isBreakAcrossPagesAllowed
指定Microsoft Word是否允许跨页拆分指定的表。
isBreakAcrossPagesAllowed?: boolean;
属性值
boolean
注解
leftCellMargin
leftIndent
rightCellMargin
rowStripe
tableDirection
指定Microsoft Word表格样式中对单元格进行排序的方向。
tableDirection?: Word.TableDirection | "RightToLeft" | "LeftToRight";
属性值
Word.TableDirection | "RightToLeft" | "LeftToRight"