NanoXLSX Library Documentation
WorksheetSetSheetName Method |
Sets the name of the sheet
Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 1.2.3.0 (1.2.3)
Syntax
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
Exceptions
Exception | Condition |
---|---|
WorksheetException | WorksheetException Thrown if no workbook is referenced. This information is necessary to determine whether the name already exists |
See Also