Click or drag to resize
NanoXLSX

WorkbookRemoveWorksheet(Int32) Method

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.

Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.4+e304ab0274fa680d1e83f83c8f76c3bd5a54caf2
Syntax
C#
public void RemoveWorksheet(
	int index
)

Parameters

index  Int32
Index within the worksheets list
Exceptions
ExceptionCondition
WorksheetExceptionThrows a WorksheetException if the index is out of range
See Also