Workbook.SetSelectedWorksheet Method (Worksheet)

NanoXLSX

NanoXLSX

WorkbookSetSelectedWorksheet Method (Worksheet)

Sets the selected worksheet in the output workbook

Namespace:  NanoXLSX
Assembly:  NanoXLSX (in NanoXLSX.dll) Version: 1.2.3.0 (1.2.3)
Syntax
C#
public void SetSelectedWorksheet(
	Worksheet worksheet
)

Parameters

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