使用指定位置删除元素
名称 | 类型 | 描述性 |
NPOs | 数组 | 元素数(位置)文档或内部元素 |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0varoFinll =api.CreateSolidFillvarostroke=api.CreatestrokevaroDrawing=api.CreateShapeoParagraph.AddDrawing(oDrawing)!varoccontent=odrawing.getdoccontentoDocContent.RemoveAllElements()!Odvictes =OdocContent.GetEplement0odText (#1段)!letnPara提高=1NPara提高 < 5++nPara增量+++++oDocContent.Push(oParagraph)!} oDocContent.RemoveElement(2)!odeptes = Api.CreatelementsodText ("我们删除3段,检查上面内容")oDocContent.Push(oParagraph)!builder.SaveFile("docx", "RemoveElement.docx")!builder.CloseFile();