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.4+e304ab0274fa680d1e83f83c8f76c3bd5a54caf2
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