ReplaceByElement

替换ByE元素++++++++++++++++++++++++++++++++++++++++++++++++

以新元素替换当前表

参数:

名称 类型 描述性
元素分解 文件元素

元素替换当前表

返回时间 :

类型
布林安

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvaro表=api.Criate表(3,3)oDocument.AddElement(0, oTable)!var表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!oTable.SetStyle(oTableStyle)!varodeptes=api.CreateleodText(表替换为当前段)oTable.ReplaceByElement(oParagraph)!builder.SaveFile("docx", "ReplaceByElement.docx")!builder.CloseFile();

结果文档