设置表Layout

SetTableLayout(sType)

继承发件人 :ApiTablePr#SetTableLayout

指定算法用于显示文档内当前表内容

参数:

名称 类型 描述性
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();

结果文档