指定当前表相对于当前段文本边距的对齐
名称 | 类型 | 描述性 |
sJcType | 左转 右转 中转 | 当前表排列时使用对齐类型 |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0odtext(表横向对齐页面中心var表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!var表Pr =o表Style.get表ProTablePr.SetJc("center")!varo表=api.Criate表(3,3)oTable.SetWidth("percent", 50)!set表Look(真真假)oTable.SetStyle(oTableStyle)!oDocument.Push(oTable)!builder.SaveFile("docx", "SetJc.docx")!builder.CloseFile();