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
)
Public Function SaveChartAsImage (
worksheet As Worksheet,
chartIndex As Integer,
imageOrPrintOptions As ConverterSetting
) As Image
public:
Image^ SaveChartAsImage(
Worksheet^ worksheet,
int chartIndex,
ConverterSetting^ imageOrPrintOptions
)
member SaveChartAsImage :
worksheet : Worksheet *
chartIndex : int *
imageOrPrintOptions : ConverterSetting -> Image
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