PicoXLSX Library Documentation
![]() | WorksheetSetSheetName Method |
Sets the name of the sheet
Namespace: PicoXLSX
Assembly: PicoXLSX (in PicoXLSX.dll) Version: 2.4.0.0 (2.4.0)

C#
public void SetSheetName( string name, bool sanitize )
Parameters
- name
- Type: SystemString
Name of the sheet - sanitize
- Type: SystemBoolean
If true, the filename will be sanitized automatically according to the specifications of Excel

Exception | Condition |
---|---|
WorksheetException | WorksheetException Thrown if no workbook is referenced. This information is necessary to determine whether the name already exists |
