添加段或表或块Lvl内容控件
名称 | 类型 | 描述性 |
NPOs | 数组 | 位置当前元素添加 |
元素分解 | 文件元素 | 文档元素添加到当前位置 |
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationvaroSlide=oPresentation.getSlideByIndex0oSlide.RemoveAllObjects()!varoFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = Api.CreateShapeoShape.SetPosition(608400, 1267200)!varoccontent=oshape.getdoccontentoDocContent.RemoveAllElements()!varodeptes=api.Createleodtext ("我们从形状上删除所有元素并插入新段oDocContent.AddElement(oParagraph)!oDocContent.Push(oParagraph)!oSlide.AddObject(oShape)!builder.SaveFile("pptx", "AddElement.pptx")!builder.CloseFile();