[]
        
(Showing Draft Content)

C1.WPF.Excel.XLNamedRangeCollection.IndexOf

IndexOf Method

IndexOf(XLNamedRange)

Gets the position of an XLNamedRange object in the collection.

Declaration
public int IndexOf(XLNamedRange nr)
Public Function IndexOf(nr As XLNamedRange) As Integer
Parameters
Type Name Description
XLNamedRange nr

The XLNamedRange object to look for.

Returns
Type Description
int

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

IndexOf(string)

Gets the position of an XLNamedRange object with the specified name in the collection.

Declaration
public int IndexOf(string name)
Public Function IndexOf(name As String) As Integer
Parameters
Type Name Description
string name

The name of the XLNamedRange object to look for.

Returns
Type Description
int

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