Click or drag to resize
NanoXLSX

WorkbookSetSelectedWorksheet(Int32) Method

Sets the selected worksheet in the output workbook

Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.3+98f265239ae8df4639650ecd7029244cc5e52dfc
Syntax
C#
public void SetSelectedWorksheet(
	int worksheetIndex
)

Parameters

worksheetIndex  Int32
Zero-based worksheet index
Exceptions
ExceptionCondition
RangeExceptionThrows a RangeException if the index of the worksheet is out of range
WorksheetExceptionThrows a WorksheetException if the worksheet to be set selected is hidden
Remarks
This method does not set the current worksheet while design time. Use SetCurrentWorksheet instead for this
See Also