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: (21.7)
public static string CreateSafeSheetName(
	string nameProposal,
	char replaceChar


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

Return Value

Type: String
See Also