Word.Interfaces.TableStyleData interface

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

注解

使用方

属性

alignment

指定表格与页边距的对齐方式。

allowBreakAcrossPage

指定使用样式格式化的表中的行是否跨页面中断。

bottomCellMargin

指定单元格的内容和底部边框之间要添加的间距。

cellSpacing

指定表格样式中单元格之间) 的间距 (。

columnStripe

指定样式指定奇数列或偶数列带时带区中的列数。

isBreakAcrossPagesAllowed

指定 Microsoft Word 是否允许跨页面中断指定表格。

leftCellMargin

指定单元格内容与左边框之间要添加的间距。

leftIndent

指定表样式中行的左缩进值(以磅) 为单位 (。

rightCellMargin

指定单元格内容和右边框之间要添加的间距。

rowStripe

指定当样式指定奇数行或偶数行带时要包含在带状中的行数。

tableDirection

指定 Microsoft Word 在表格样式中排序单元格的方向。

topCellMargin

指定单元格的内容和顶部边框之间要添加的间距。

属性详细信息

alignment

指定表格与页边距的对齐方式。

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

属性值

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

注解

API 集:WordApiDesktop 1.1

allowBreakAcrossPage

指定使用样式格式化的表中的行是否跨页面中断。

allowBreakAcrossPage?: boolean;

属性值

boolean

注解

API 集:WordApiDesktop 1.1

bottomCellMargin

指定单元格的内容和底部边框之间要添加的间距。

bottomCellMargin?: number;

属性值

number

注解

API 集:WordApi 1.6

cellSpacing

指定表格样式中单元格之间) 的间距 (。

cellSpacing?: number;

属性值

number

注解

API 集:WordApi 1.6

columnStripe

指定样式指定奇数列或偶数列带时带区中的列数。

columnStripe?: number;

属性值

number

注解

API 集:WordApiDesktop 1.4

isBreakAcrossPagesAllowed

指定 Microsoft Word 是否允许跨页面中断指定表格。

isBreakAcrossPagesAllowed?: boolean;

属性值

boolean

注解

API 集:WordApiDesktop 1.4

leftCellMargin

指定单元格内容与左边框之间要添加的间距。

leftCellMargin?: number;

属性值

number

注解

API 集:WordApi 1.6

leftIndent

指定表样式中行的左缩进值(以磅) 为单位 (。

leftIndent?: number;

属性值

number

注解

API 集:WordApiDesktop 1.4

rightCellMargin

指定单元格内容和右边框之间要添加的间距。

rightCellMargin?: number;

属性值

number

注解

API 集:WordApi 1.6

rowStripe

指定当样式指定奇数行或偶数行带时要包含在带状中的行数。

rowStripe?: number;

属性值

number

注解

API 集:WordApiDesktop 1.4

tableDirection

指定 Microsoft Word 在表格样式中排序单元格的方向。

tableDirection?: Word.TableDirection | "RightToLeft" | "LeftToRight";

属性值

Word.TableDirection | "RightToLeft" | "LeftToRight"

注解

API 集:WordApiDesktop 1.4

topCellMargin

指定单元格的内容和顶部边框之间要添加的间距。

topCellMargin?: number;

属性值

number

注解

API 集:WordApi 1.6