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.2+7f12a949130e0be1e987e553d2d08c083176cdca
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