转换ApiStle对象为JSON对象
名称 | 类型 | 描述性 |
bWriteNumberings | 布林安 | 指定使用编号是否写入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();