Click or drag to resize

XlsWorkbook SaveChartAsImage Method (Worksheet, Int32, ConverterSetting)

Saves the chart at the specified index in the worksheet as an image using the provided image or print options.

Namespace: Spire.Xls.Core.Spreadsheet
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public Image SaveChartAsImage(
	Worksheet worksheet,
	int chartIndex,
	ConverterSetting imageOrPrintOptions
)

Parameters

worksheet
Type: Spire.Xls Worksheet
The worksheet containing the chart to be saved.
chartIndex
Type: System Int32
The index of the chart to be saved.
imageOrPrintOptions
Type: Spire.Xls ConverterSetting
The options for converting the chart to an image.

Return Value

Type: Image
The saved image.
See Also