设置文本颜色当前文本运行
名称 | 类型 | 描述性 |
OAPIFILLLL | apiFill | 颜色或模式填充文本颜色 |
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.CreateRunvaroTextPrssun.getTextProTextPr.SetFontSize(50)!i.CreateSolidFilloTextPr.SetFill(oFill)!ORun.AddText ("这是带字体颜色集黑运行文本使用文本属性")oParagraph.AddElement(oRun)!oSlide.AddObject(oShape)!builder.SaveFile("pptx", "SetFill.pptx")!builder.CloseFile();