Click or drag to resize
NanoXLSX

WorkbookRemoveWorksheet Method

Overload List
 NameDescription
Public methodRemoveWorksheet(Int32) Removes the defined worksheet based on its index. If the worksheet is the current or selected worksheet, the current and / or the selected worksheet will be set to the last worksheet of the workbook. If the last worksheet is removed, the selected worksheet will be set to 0 and the current worksheet to null.
Public methodRemoveWorksheet(String) Removes the defined worksheet based on its name. If the worksheet is the current or selected worksheet, the current and / or the selected worksheet will be set to the last worksheet of the workbook. If the last worksheet is removed, the selected worksheet will be set to 0 and the current worksheet to null.
Private methodRemoveWorksheet(Int32, Boolean) Removes the worksheet at the defined index and relocates current and selected worksheet references
Top
See Also