Click or drag to resize
NanoXLSX

WorksheetSanitizeWorksheetName Method

Sanitizes a worksheet name

Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.5+4f4b44a718a20dda8ca2c0c4d00bd7eee7c80f5d
Syntax
C#
public static string SanitizeWorksheetName(
	string input,
	Workbook workbook
)

Parameters

input  String
Name to sanitize
workbook  Workbook
Workbook reference

Return Value

String
Name of the sanitized worksheet
Exceptions
ExceptionCondition
WorksheetExceptionA WorksheetException is thrown if the workbook reference is null, since all worksheets have to be considered during sanitation
See Also