添加段或表或块Lvl内容控件
名称 | 类型 | 描述性 |
NPOs | 数组 | 位置当前元素添加 |
元素分解 | 文件元素 | 文档元素添加到当前位置 |
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0varoFinll =api.CreateSolidFillvarostroke=api.CreatestrokevaroDrawing=api.CreateShapeoParagraph.AddDrawing(oDrawing)!varoccontent=odrawing.getdoccontentoDocContent.RemoveAllElements()!odeptes = Api.Createlementsodtext ("我们从形状上删除所有元素并插入新段oDocContent.AddElement(0, oParagraph)!builder.SaveFile("docx", "AddElement.docx")!builder.CloseFile();