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.5+4f4b44a718a20dda8ca2c0c4d00bd7eee7c80f5d
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