ComponentOne Excel for .NET
C1.Excel Assembly / C1.Excel Namespace / XLSheetCollection Class / IndexOf Method / IndexOf(XLSheet) Method
The object to look for.

In This Topic
    IndexOf(XLSheet) Method
    In This Topic
    Gets the index of a given XLSheet in the collection.
    Syntax
    'Declaration
     
    Public Overloads Function IndexOf( _
       ByVal sheet As XLSheet _
    ) As System.Integer
    public System.int IndexOf( 
       XLSheet sheet
    )

    Parameters

    sheet
    The object to look for.

    Return Value

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