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.7+b0ed5f8a99a50b9e6528224889fbd7f23c30b364
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