SetStyleRowBandSize

SetStyleRowBandSize(nCount)

指定数行组成表条样式

参数:

名称 类型 描述性
NCount 数组

行数正整数

返回时间 :

方法不返回数据

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentoDocument.RemoveAllElements()!var表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!varo表 = Api.Criate表2 4oTable.SetWidth("percent", 100)!oTable.SetStyle(oTableStyle)!set表Look(真真真假)oTable.SetStyleRowBandSize(2)!oTableStyle.GetConditionalTableStyle("bandedRow").GetTextPr().SetBold(true)!oTable.GetRow(0).GetCell(0).GetContent().GetElement(0).AddText("Normal")!oTable.GetRow(0).GetCell(1).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(2).GetCell(0).GetContent().GetElement(0).AddText("Bold")!oTable.GetRow(2).GetCell(1).GetContent().GetElement(0).AddText("Bold")!oTable.GetRow(3).GetCell(0).GetContent().GetElement(0).AddText("Normal")!oTable.GetRow(3).GetCell(1).GetContent().GetElement(0).AddText("Normal")!oDocument.Push(oTable)!builder.SaveFile("docx", "SetStyleRowBandSize.docx")!builder.CloseFile();

结果文档