ToJSON系统

TOJSON (){{JSON}

转换ApitableCellPr对象为JSON对象

参数:

这种方法没有任何参数

返回时间 :

类型
JSON系统

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvar表Style=ODocument.CreateStyleoTableStyle.SetBasedOn(oDocument.GetStyle("Bordered"))!varo表=api.Criate表(3,3)oTable.SetWidth("percent", 100)!var tableCellPr =otableStyle.GettableCellPrtableCellPr.SetCleverBottomoTable.SetStyle(oTableStyle)!oDocument.Push(oTable)!varjson =OtableCellPr.ToJSONvar表CellPrFERJSON=api.FromJSONvarstype =oTableCellPrFERJSON.GetClassTypevarolements=ODocument.GetEplement0odclips类型=+sypebuilder.SaveFile("docx", "ToJSON.docx")!builder.CloseFile();

结果文档