Back to Devexpress

ChartSheetCollection.Remove(ChartSheet) Method

officefileapi-devexpress-dot-spreadsheet-dot-chartsheetcollection-dot-remove-x28-devexpress-dot-spreadsheet-dot-chartsheet-x29.md

latest2.3 KB
Original Source

ChartSheetCollection.Remove(ChartSheet) Method

Removes the specified chart sheet from the collection.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
void Remove(
    ChartSheet chartSheet
)
vb
Sub Remove(
    chartSheet As ChartSheet
)

Parameters

NameTypeDescription
chartSheetChartSheet

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

RemoveAt(Int32)

Add

Insert

ChartSheetCollection Interface

ChartSheetCollection Members

DevExpress.Spreadsheet Namespace