Workbook.SetSelectedWorksheet Method (Worksheet)

PicoXLSX

PicoXLSX

WorkbookSetSelectedWorksheet Method (Worksheet)

Sets the selected worksheet in the output workbook

Namespace:  PicoXLSX
Assembly:  PicoXLSX (in PicoXLSX.dll) Version: 2.4.0.0 (2.4.0)
Syntax
C#
public void SetSelectedWorksheet(
	Worksheet worksheet
)

Parameters

worksheet
Type: PicoXLSXWorksheet
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