Click or drag to resize
NanoXLSX

WorkbookAddWorksheet(Worksheet) Method

Adding a new Worksheet. The new worksheet will be defined as current worksheet

Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.4+e304ab0274fa680d1e83f83c8f76c3bd5a54caf2
Syntax
C#
public void AddWorksheet(
	Worksheet worksheet
)

Parameters

worksheet  Worksheet
Prepared worksheet object
Exceptions
ExceptionCondition
WorksheetExceptionWorksheetException is thrown if the name of the worksheet already exists
FormatExceptionFormatException is thrown if the worksheet name contains illegal characters or is out of range (length between 1 an 31)
See Also