Excel for WPF | ComponentOne
C1.Silverlight.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 Integer
    public 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