Workbook.SetSelectedWorksheet Method (Int32)

PicoXLSX

PicoXLSX

WorkbookSetSelectedWorksheet Method (Int32)

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(
	int worksheetIndex
)

Parameters

worksheetIndex
Type: SystemInt32
Zero-based worksheet index
Exceptions
ExceptionCondition
RangeExceptionThrows a OutOfRangeException if the index of the worksheet is out of range
Remarks
This method does not set the current worksheet while design time. Use SetCurrentWorksheet instead for this
See Also