CellsHelperCreateSafeSheetName Method (String, Char)

Checks given sheet name and create a valid one when needed. If given sheet name conforms to the rules of excel sheet name, then return it. Otherwise string will be truncated if length exceeds the limit and invalid characters will be replaced with given character, then return the rebuilt string value.

Namespace:  Aspose.Cells
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 20.9.0.0 (20.9)
Syntax
public static string CreateSafeSheetName(
	string nameProposal,
	char replaceChar
)

Parameters

nameProposal
Type: SystemString
sheet name to be used
replaceChar
Type: SystemChar
character which will be used to replace invalid characters in given sheet name

Return Value

Type: String
See Also