PicoXLSX Library Documentation
![]() | WorkbookSetSelectedWorksheet Method (Worksheet) |
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( Worksheet worksheet )
Parameters
- worksheet
- Type: PicoXLSXWorksheet
Worksheet object (must be in the collection of worksheets)

Exception | Condition |
---|---|
WorksheetException | Throws a UnknownWorksheetException if the worksheet was not found in the worksheet collection |

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