IWorksheetManager.RemoveSheetsFromWorkbook Method

Removes specified sheets from a workbook. The operation is safe, it means that formulas in remaining sheets will be converted to computed values, because formulas could contain cells from the removed sheets.
void RemoveSheetsFromWorkbook( 
   IWorkbook workbook
   IList<IWorksheet> sheetsToRemove 
)

Parameters

workbook
IWorkbook

The workbook from which the sheets are to be removed. It should be unprotected.

sheetsToRemove
IList<IWorksheet>

The list of sheets to be removed.

Version
 
Available since QDV 7.13.0001.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2