Click or drag to resize
NanoXLSX

WorkbookSetSelectedWorksheet(Worksheet) Method

Sets the selected worksheet in the output workbook

Namespace: NanoXLSX
Assembly: NanoXLSX (in NanoXLSX.dll) Version: 2.6.7+064d9a8047d8da6ad83b4776af2459e923cc7c3d
Syntax
C#
public void SetSelectedWorksheet(
	Worksheet worksheet
)

Parameters

worksheet  Worksheet
Worksheet object (must be in the collection of worksheets)
Exceptions
ExceptionCondition
WorksheetExceptionThrows a WorksheetException if the worksheet was not found in the worksheet collection or if it is hidden
Remarks
This method does not set the current worksheet while design time. Use SetCurrentWorksheet instead for this
See Also