Removes the chart sheet at the specified position from the collection.
An integer that is the zero-based index of a chart sheet to be deleted from a workbook.
The RemoveAt method disposes of an element removed from the collection. To remove the specified chart sheet from the collection, use the ChartSheetCollection.Remove method. You can also hide a chart sheet using the ChartSheet.Visible or ChartSheet.VisibilityType property.
A workbook must always contain at least one visible sheet.
A complete sample project is available at https://github.com/DevExpress-Examples/winforms-spreadsheet-chart-api-e5222
Dim worksheet As 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)