klyn.io.xlsx.WorkbookWorksheets.indexOf
method

    public override indexOf(item as Worksheet, start as Int = 0) as Int:

Description

Returns the first index containing the worksheet reference.

Parameters

Parameter | Description
--- | ---
`item` | Worksheet to locate.
`start` | Zero-based position where the search starts.

Returns

Matching index, or `-1` when absent.

Example

    index = workbook.worksheets.indexOf(sheet)