| xlsgen > overview > Charts management |
xlsgen provides the following mechanisms to manage charts :
worksheet.NewChart (embedded chart)workbook.AddChart (stand-alone chart)worksheet.Shapes returns the shapes collection of the given worksheet (shapes are pictures, charts, ...)shapes.Item(i) returns the i-th shape in that collectionshape.Type returns the shape type (chart = 5)shape.Delete() deletes the chartworksheet.Charts returns the charts collection for the given worksheetcharts.Item(i) returns the i-th chart in that collectionchart.ExtractToFile() returns a snapshot of the chart (PNG file)chart.ExtractToMemory() returns a buffer with a snapshot of the chart (PNG buffer)worksheet.PrintWith prints the worksheet and its contents
worksheet.PrintPreview previews the worksheet and its contents
worksheet.Export.ExportAsPDF exports the worksheet and its contents as a PDF file
xlsgen documentation. © ARsT Design all rights reserved.