A newer version of this page is available. Switch to the current version.
How to: Remove a Chart Sheet
You can also move a chart back to the worksheet containing the source data by using the chart’s ChartObject.MoveToWorksheet method.
A complete sample project is available at https://github.com/DevExpress-Examples/winforms-spreadsheet-chart-api-e5222
Worksheet worksheet = workbook.Worksheets["chartTask1"]; // Create the first chart sheet. workbook.ChartSheets.Add(); // Create the second chart sheet. workbook.ChartSheets.Add(ChartType.Pie, worksheet["B2:C7"]); // Remove the first chart sheet. workbook.ChartSheets.RemoveAt(0);