klyn.io.xlsx.WorkbookWorksheets.lastIndexOf
method

    public override lastIndexOf(item as Worksheet, start as Int = -1) as Int:

Description

Returns the last index containing the worksheet reference.

Parameters

Parameter | Description
--- | ---
`item` | Worksheet to locate.
`start` | Reverse-search position, or `-1` to start at the end.

Returns

Matching index, or `-1` when absent.

Example

    index = workbook.worksheets.lastIndexOf(sheet)