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.3+98f265239ae8df4639650ecd7029244cc5e52dfc
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