类表示表单单元格属性
名称 | 描述性 |
GetClassType系统 | 返回ApitableCellPr类 |
SetCellBorderBottom | 设置边框显示在当前表单元格底部 |
SetCellBorderLeft | 设置边框显示当前表单元格左侧 |
SetCellBorderRight | 设置边框显示当前表单元格右侧 |
SetCellBorderTop | 设置边框显示在当前表单元格顶部 |
SetCellMarginBottom | 指定数位空间,在单元格内容底部范围与表内特定表单元格边框间保留 |
SetCellMarginLeft | 指定数位空间,在单元格内容左侧范围与表内特定表单元格边框间保留 |
SetCellMarginRight | 指定数位空间,在单元格内容右侧范围与表内特定表单元格边框间保留 |
SetCellMarginTop | 指定在表内单元格内上层和表边框间留空 |
设号Wrap | 指定当前表单显示文档时如何显示父表本设置只影响单元格行为ApiTablePr#SetTableLayout表布局设置使用 |
Setshd | 指定灰色应用表单元格内容 |
SetTextDirection | 指定此表单元格文本流方向 |
SetVerticalAlign | 指定当前表单单元格内文本内容垂直对齐 |
设屏 | 设置当前表单首选宽度 |
ToJSON系统 | 转换ApitableCellPr对象为JSON对象 |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvar表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!varo表=api.Criate表(3,3)oTable.SetWidth("percent", 100)!var表列=o表.getRow0oTableRow.SetHeight("atLeast", 1440)!var tableCellPr =otableStyle.GettableCellProTableCellPr.SetVerticalAlign("bottom")!tableCellPr.SetCellFrontRighttableCellPr.SetCluserToptableCellPr.Setshdvarocell =otable.GetRow0.GetCell0varodents=oCell.GetContentsoParagraph.AddText("Align bottom")!oTable.SetStyle(oTableStyle)!oDocument.Push(oTable)!var slassType =otableCellPr.GetClassTypeodeptements =ODocument.GetE元素0odstext (slass类型=+ssstype)builder.SaveFile("docx", "ApiTableCellPr.docx")!builder.CloseFile();