Setshd

Setshd(sType,r,g,b)apiTextPr}

指定灰色应用到当前文本运行内容

参数:

名称 类型 描述性
sType系统 shdType系统

灰色类型应用到当前文本运行内容

R 字节

红色组件值

g级 字节

绿色分量值

b/ 字节

蓝色组件值

返回时间 :

类型
apiTextPr

实例

拷贝代码
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationvaroSlide=oPresentation.getSlideByIndex0oSlide.RemoveAllObjects()!varoFinll =api.CreateSolidFillVarostroke = Api.Createstroke 0,Api.CreatenoFinllVar Oshape = Api.CreateShapeoShape.SetPosition(608400, 1267200)!varoccontent=oshape.getdoccontentvarodente=occontent.getEplement0var ORun=api.CreateRunORun.AddText ("这是一个文本运行集文本为黑")oParagraph.AddElement(oRun)!ORUN.SetShdoSlide.AddObject(oShape)!builder.SaveFile("pptx", "SetShd.pptx")!builder.CloseFile();

结果文档