获取全图

GetAllCharts数组 }

从文档内容返回图表对象集合

参数:

这种方法没有任何参数

返回时间 :

类型
数组

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0varoFinll =api.CreateSolidFillvarostroke=api.CreatestrokeVar Oshape = Api.CreateShapeoParagraph.AddDrawing(oShape)!VaroCart = Api.CreateCartti.CreateSolidFillsetSeriesFilli.CreteRGBColor(255,111,61)setSeriesFillsetVerAxistleoChart.SetHorAxisTitle("Year", 11)!oChart.SetLegendPos("bottom")!setShowData标签settitle(金融概述,13)odeptes = Api.CreatelementsoParagraph.AddDrawing(oChart)!varoccontent=oshape.getdoccontentoDocContent.AddElement(0, oParagraph)!var acharts=occontent.GetAllchartsstroke=api.Createstroke(1*150,Api.CreateSolidFillaCharts[0].SetMinorHorizontalGridlines(oStroke)!builder.SaveFile("docx", "GetAllCharts.docx")!builder.CloseFile();

结果文档