Excel for WPF | ComponentOne
C1.Silverlight.Excel Namespace / XLSheetCollection Class / IndexOf Method / IndexOf(String) Method
Name of the object to look for (case-insensitive).

In This Topic
    IndexOf(String) Method
    In This Topic
    Gets the position of the sheet with the specified name in the collection.
    Syntax
    'Declaration
     
    
    Public Overloads Function IndexOf( _
       ByVal name As String _
    ) As Integer
    public int IndexOf( 
       string name
    )

    Parameters

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

    Return Value

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