ToJSON系统

ToJSON(bWriteMaster),bwite表型

转换ApiLayout对象为JSON对象

参数:

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

指定幻灯片大师写不写JSON对象

bWriteTableStyles 布卢尔 虚伪

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

返回时间 :

类型
JSON系统

实例

拷贝代码
builder.CreateFile("pptx")!varoPresentation=api.GetpresentationvaroSlide=oPresentation.getSlideByIndex0oSlide.RemoveAllObjects()!varomasterssservations.GetMasters0VaroLayotsevarjsonseyet.toJSON(真假)Var OLAYOTWERJSON=ApiJSONJJSONoMaster.AddLayout(0, oLayoutFromJSON)!varoFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = Api.CreateShapeoShape.SetPosition(608400, 1267200)!Shape.SetSize(300*36000,130*3600)varstypessypevaroccontent=oshape.getdoccontentvarodente=occontent.getEplement0odclips类型=+sypeoLayoutFromJSON.AddObject(oShape)!oSlide.ApplyLayout(oLayoutFromJSON)!builder.SaveFile("pptx", "ToJSON.pptx")!builder.CloseFile();

结果文档