ToJSON系统

ToJSON([bwrite表样式])

转换apmaster对象为JSON对象

参数:

名称 类型 默认 描述性
bWriteTableStyles 布卢尔 虚伪

指定是否向JSON对象写用表样式(真)

返回时间 :

类型
JSON系统

实例

拷贝代码
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationvaroSlide=oPresentation.getSlideByIndex0varomasterssservations.GetMasters0varjsonsseomaster.toJSONVar OmasterFromJSON/Api.FromJSON/JSONoSlide.RemoveAllObjects()!varoFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = Api.CreateShapeoShape.SetPosition(608400, 1267200)!Shape.SetSize(300*36000,130*3600)varoccontent=oshape.getdoccontentvarodente=occontent.getEplement0varstypessypeodclips类型=+sypeoSlide.AddObject(oShape)!builder.SaveFile("pptx", "ToJSON.pptx")!builder.CloseFile();

结果文档