类表示表属性
名称 | 描述性 |
GetClassType系统 | 返回ApitablePr类类型 |
GetTableDescription | 返回表描述 |
取表技巧 | 返回表标题 |
secellScreet | 指定默认表单元格间距(相邻单元格间距和表边缘间距)。 |
赛特Jc | 指定当前表相对于当前段文本边距的对齐 |
Setshd | 指定阴影应用到当前表范围 |
SetStyleColBandSize | 指定数列组成表列带以备表样式 |
SetStyleRowBandSize | 指定数行组成表条样式 |
SetTableBorderBottom | 设置边框显示在当前表底部 |
SetTableBorderInsideH | 指定边框显示在所有水平表单元格边框上,这些边框不在父表最边缘上(所有水平边框不是最上层或最下层边界上)。 |
SetTableBorderInsideV | 指定边界显示在所有垂直表单元格边框上,这些边框不在父表最边缘上(所有垂直边框不最左或最右边框)。 |
SetTableBorderLeft | 设置边框显示在当前表左侧 |
SetTableBorderRight | 设置边框显示在当前表右侧 |
SetTableBorderTop | 设置边框显示在当前表顶端 |
SetTableCellMarginBottom | 指定从底部范围单元格内容到父表内所有表单元格边界间留空度(或表列行)。 |
SetTableCellMarginLeft | 指定在左范围单元格内容和父表内所有表单元格左边框间留空度(或表列列内)。 |
SetTableCellMarginRight | 指定在单元格内容右范围与父表内所有表单元格右边框(或表列行)间左留空间 |
SetTableCellMarginTop | 指定量空间留到单元格内容顶部和父表内所有表单元格顶端边界间(或表列内)。 |
SetTableDescription | 设置表描述 |
集表Ind | 指定缩进值添加到文档当前表前端(左对右表左边缘和右对左表右边缘)。 |
设置表Layout | 指定算法用于显示文档内当前表内容 |
集表技巧 | 设置表标题 |
设屏 | 设置当前表首选宽度
|
ToJSON系统 | 转换apitablePr对象为JSON对象 |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvar表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!var表Pr =o表Style.get表ProTablePr.SetJc("center")!oTablePr.SetCellSpacing(720)!TablePr.Set表边界BottomTablePr.Set表边排列32.05151TablePr.Set表边权限3205151TablePr.Set表边框TopoTablePr.SetWidth("percent", 100)!varo表=api.Criate表(4,2)set表Look(真真真假)oTablePr.SetStyleColBandSize(2)!oTableStyle.GetConditionalTableStyle("bandedColumn").GetTextPr().SetBold(true)!oTable.GetRow(0).GetCell(0).GetContent().GetElement(0).AddText("Bold")!oTable.GetRow(0).GetCell(1).GetContent().GetElement(0).AddText("Bold")!oTable.GetRow(0).GetCell(2).GetContent().GetElement(0).AddText("Normal")!oTable.GetRow(0).GetCell(3).GetContent().GetElement(0).AddText("Normal")!oTable.GetRow(1).GetCell(0).GetContent().GetElement(0).AddText("Bold")!oTable.GetRow(1).GetCell(1).GetContent().GetElement(0).AddText("Bold")!oTable.GetRow(1).GetCell(2).GetContent().GetElement(0).AddText("Normal")!oTable.GetRow(1).GetCell(3).GetContent().GetElement(0).AddText("Normal")!oTable.SetStyle(oTableStyle)!var slassType =otablePr.GetClassTypevarolements=ODocument.GetEplement0odstext (slass类型=+ssstype)oDocument.Push(oTable)!builder.SaveFile("docx", "ApiTablePr.docx")!builder.CloseFile();