NanoXLSX Library Documentation
NanoXLSX Library Documentation
NanoXLSX
NanoXLSX
Worksheet Class
Worksheet Methods
SetSheetName Method
SetSheetName(String) Method
SetSheetName(String, Boolean) Method
Worksheet
Set
Sheet
Name(String, Boolean) Method
Sets the name of the worksheet
Namespace:
NanoXLSX
Assembly:
NanoXLSX (in NanoXLSX.dll) Version: 2.6.4+e304ab0274fa680d1e83f83c8f76c3bd5a54caf2
Syntax
C#
Copy
public
void
SetSheetName
(
string
name
,
bool
sanitize
)
Parameters
name
String
Name of the worksheet
sanitize
Boolean
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
Reference
Worksheet Class
SetSheetName Overload
NanoXLSX Namespace
Copyright Raphael Stoeckli © 2025