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+3223c8b99fcd3402b4ae016daa480abac16f8a9f
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