向当前运行添加文本
名称 | 类型 | 描述性 |
sText语言 | 字符串 | 文本添加到当前运行中 |
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationvaroSlide=oPresentation.getSlideByIndex0oSlide.RemoveAllObjects()!varoFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = Api.CreateShapeoShape.SetPosition(608400, 1267200)!varoccontent=oshape.getdoccontentvarodente=occontent.getEplement0var ORun=api.CreateRunoRun.SetFontSize(30)!ORun.AddText ("这只是样本文本没有什么特殊性 )!oParagraph.AddElement(oRun)!oSlide.AddObject(oShape)!builder.SaveFile("pptx", "AddText.pptx")!builder.CloseFile();