ToJSON系统

ToJSON(bwrite编号)

转换ApiStle对象为JSON对象

参数:

名称 类型 描述性
bWriteNumberings 布林安

指定使用编号是否写入JSON对象

返回时间 :

类型
JSON系统

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentVar表Style=ODocument.GetStylevarjsonsstyle.toJSON(false)var stylefromJSON=api.fromJSONsetName(我自定义样式)varo表=api.Criate表2oTable.SetWidth("percent", 100)!oTable.SetStyle(oStyleFromJSON)!oDocument.Push(oTable)!builder.SaveFile("docx", "ToJSON.docx")!builder.CloseFile();

结果文档