跳到主要内容

ApiTableCellPr

表示 ApiTableCellPr 类。

方法

方法返回值描述
GetClassType"tableCellPr"返回 ApiTableCellPr 类的类型。
SetCellBorderBottomboolean设置将显示在当前表格单元格底部的边框。
SetCellBorderLeftboolean设置将显示在当前表格单元格左侧的边框。
SetCellBorderRightboolean设置将显示在当前表格单元格右侧的边框。
SetCellBorderTopboolean设置将显示在当前表格单元格顶部的边框。
SetCellMarginBottomboolean指定表格中特定表格单元格的内容底边与单元格边框之间的间距。
SetCellMarginLeftboolean指定表格中特定表格单元格的内容左边与单元格边框之间的间距。
SetCellMarginRightboolean指定表格中特定表格单元格的内容右边与单元格边框之间的间距。
SetCellMarginTopboolean指定表格中特定表格单元格的内容上边与单元格边框之间的间距。
SetNoWrapboolean指定在文档中显示父表格时当前表格单元格的布局方式。此设置仅在表格的 ApiTablePr#SetTableLayout 表格布局设置为使用 <code>"autofit"</code> 算法时影响单元格的行为。
SetShdboolean指定应用于表格单元格内容的底纹。
SetTextDirectionboolean指定此表格单元格的文本流方向。
SetVerticalAlignboolean指定当前表格单元格中文本内容的垂直对齐方式。
SetWidthboolean设置当前表格单元格的首选宽度。
ToJSONJSON将 ApiTableCellPr 对象转换为 JSON 对象。