PicoXLSX Library Documentation
![]() | WorkbookAddWorksheet Method (Worksheet) |
Adding a new Worksheet. The new worksheet will be defined as current worksheet
Namespace: PicoXLSX
Assembly: PicoXLSX (in PicoXLSX.dll) Version: 2.4.0.0 (2.4.0)

C#
public void AddWorksheet( Worksheet worksheet )
Parameters
- worksheet
- Type: PicoXLSXWorksheet
Prepared worksheet object

Exception | Condition |
---|---|
WorksheetException | WorksheetException is thrown if the name of the worksheet already exists |
FormatException | FormatException is thrown if the worksheet name contains illegal characters or is out of range (length between 1 an 31 |
