GetParentTableCell

GetParent表CellspitableCell......

返回表单包含当前内容控件

参数:

这种方法没有任何参数

返回时间 :

类型
spitableCell空区

实例

拷贝代码
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)!varoinlvlStOinlineLvlSdt.adTextvarodeptes=api.CreateleoParagraph.AddElement(oInlineLvlSdt, 0)!varocell =otable.GetRow0.GetCell0oCell.AddElement(0, oParagraph)!var tableCell =OinlinelvlSt.GetParent表ellParent表Cell.Setshdbuilder.SaveFile("docx", "GetParentTableCell.docx")!builder.CloseFile();

结果文档