设置当前主题格式机制名
名称 | 类型 | 描述性 |
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();