获取父表

GetParent表spi表......

返回表包含当前段

参数:

这种方法没有任何参数

返回时间 :

类型
spi表空区

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvar表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!varo表=api.Criate表(3,3)oTable.SetWidth("percent", 100)!oTable.SetStyle(oTableStyle)!oDocument.Push(oTable)!varodeptes=api.CreateleadText ("这只是样本文本.")varoCell =otable.GetCell(00)o表.adEplementvar oParent表 =oDept.getParent表OCell=oParent表.GetRow(2).GetCell0oParentTable.RemoveRow(oCell)!builder.SaveFile("docx", "GetParentTable.docx")!builder.CloseFile();

结果文档