设置系统Name

sescemeNames命名+++

设置当前主题格式机制名

参数:

名称 类型 描述性
sName大全 字符串

主题格式方案名称

返回时间 :

类型
布林安

实例

拷贝代码
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationvaroSlide=oPresentation.getSlideByIndex0oSlide.RemoveAllObjects()!varomasterssservations.GetMasters0varomeseVaromatScheme=otheme.GetFormatSchemesetSchemeNamevaroFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = Api.CreateShapeoShape.SetPosition(608400, 1267200)!Shape.SetSize(300*36000,130*3600)varoccontent=oshape.getdoccontentvarodente=occontent.getEplement0oParagraph.SetJc("left")!odText (新名设置为主题格式机制 )!oSlide.AddObject(oShape)!builder.SaveFile("pptx", "SetSchemeName.pptx")!builder.CloseFile();

结果文档