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.3+98f265239ae8df4639650ecd7029244cc5e52dfc
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