Spread WinRT Documentation
GrapeCity.Excel Namespace / ExcelWorksheetCollection Class / IndexOf Method
The object to locate in the collection


In This Topic
    IndexOf Method (ExcelWorksheetCollection)
    In This Topic
    searches for the specified object and returns the zero-based index of the first occurrence within the entire collection
    Syntax
    'Declaration
     
    Public Function IndexOf( _
       ByVal worksheet As IExcelWorksheet _
    ) As Integer
    'Usage
     
    Dim instance As ExcelWorksheetCollection
    Dim worksheet As IExcelWorksheet
    Dim value As Integer
     
    value = instance.IndexOf(worksheet)
    public int IndexOf( 
       IExcelWorksheet worksheet
    )

    Parameters

    worksheet
    The object to locate in the collection

    Return Value

    The zero based index of the first occurrence of ExcelWorksheet within the entire collection, if found; otherwise, –1.
    See Also