[]
        
(Showing Draft Content)

C1.Excel.XLSheetCollection.IndexOf

IndexOf Method

IndexOf(XLSheet)

Gets the index of a given XLSheet in the collection.

Declaration
public int IndexOf(XLSheet sheet)
Parameters
Type Name Description
XLSheet sheet

The object to look for.

Returns
Type Description
int

The index of the object in the collection, or -1 if the object is not a member of the collection.

IndexOf(string)

Gets the position of the sheet with the specified name in the collection.

Declaration
public int IndexOf(string name)
Parameters
Type Name Description
string name

Name of the object to look for (case-insensitive).

Returns
Type Description
int

The index of the sheet in the collection, or -1 if the sheet can't be found in the collection.