PicoXLSX Library Documentation
![]() | WorkbookSetSelectedWorksheet Method (Int32) |
Sets the selected worksheet in the output workbook
Namespace: PicoXLSX
Assembly: PicoXLSX (in PicoXLSX.dll) Version: 2.4.0.0 (2.4.0)

C#
public void SetSelectedWorksheet( int worksheetIndex )
Parameters
- worksheetIndex
- Type: SystemInt32
Zero-based worksheet index

Exception | Condition |
---|---|
RangeException | Throws a OutOfRangeException if the index of the worksheet is out of range |

This method does not set the current worksheet while design time. Use SetCurrentWorksheet instead for this
