Click or drag to resize

XlsWorkbook ActiveSheetIndex Property

Gets or sets the index of the active worksheet in the workbook.

Namespace: Spire.Xls.Core.Spreadsheet
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public int ActiveSheetIndex { get; set; }

Property Value

Type: Int32
The index of the active worksheet.

Return Value

Type: Int32
The index of the active worksheet.

Implements

IWorkbook ActiveSheetIndex
Exceptions
Exception Condition
ArgumentOutOfRangeException Thrown when the specified index is out of range.
See Also