Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ChartSheetCollection.Remove(ChartSheet) Method

Removes the specified chart sheet from the collection.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#Declaration

void Remove(
    ChartSheet chartSheet
)

#Parameters

Name Type Description
chartSheet ChartSheet

A ChartSheet object specifying a chart sheet to be removed from a workbook.

#Remarks

The Remove method disposes of an element removed from the collection. To remove a chart sheet by its index in the collection, use the ChartSheetCollection.RemoveAt method. You can also hide a chart sheet using the ChartSheet.Visible or ChartSheet.VisibilityType property.

Note

A workbook must always contain at least one visible sheet.

To add a chart sheet to a workbook, use the ChartSheetCollection.Add or ChartSheetCollection.Insert method.

See Also