Worksheet.SetSheetName Method

PicoXLSX

PicoXLSX

WorksheetSetSheetName Method

Sets the name of the sheet

Namespace:  PicoXLSX
Assembly:  PicoXLSX (in PicoXLSX.dll) Version: 2.4.0.0 (2.4.0)
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
ExceptionCondition
WorksheetExceptionWorksheetException Thrown if no workbook is referenced. This information is necessary to determine whether the name already exists
See Also