Chart.SaveImage Method (String, ChartImageFormat)

.NET Framework (current version)
 

Saves the chart image to the specified file.

Namespace:   System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

public void SaveImage(
	string imageFileName,
	ChartImageFormat format
)

Parameters

imageFileName
Type: System.String

The name of the file in which image is saved to.

format
Type: System.Windows.Forms.DataVisualization.Charting.ChartImageFormat

The chart image format.

.NET Framework
Available since 4.0
Return to top
Show: