指定算法用于显示文档内当前表内容
名称 | 类型 | 描述性 |
sType系统 | 高端封装 | 文档表布局类型 |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0odtext ("我们设置表单以保留大小:")var表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!varo表=api.Criate表(3,3)oTable.SetTableLayout("fixed")!varocell =otable.GetRow0.GetCell0oCell.GetContent().GetElement(0).AddText("Fixed layout")!oTable.SetStyle(oTableStyle)!oDocument.Push(oTable)!builder.SaveFile("docx", "SetTableLayout.docx")!builder.CloseFile();