Excel for WPF | ComponentOne
C1.WPF.Excel Namespace / XLNamedRangeCollection Class / IndexOf Method / IndexOf(String) Method
The name of the XLNamedRange object to look for.

In This Topic
    IndexOf(String) Method
    In This Topic
    Gets the position of an XLNamedRange object 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
    The name of the XLNamedRange object to look for.

    Return Value

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