Click or drag to resize
NanoXLSX

WorksheetSetSheetName(String, Boolean) Method

Sets the name of the worksheet

Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.5+4f4b44a718a20dda8ca2c0c4d00bd7eee7c80f5d
Syntax
C#
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
ExceptionCondition
WorksheetExceptionWorksheetException Thrown if no workbook is referenced. This information is necessary to determine whether the name already exists
See Also