Gets the position of an
XLNamedRange object with the specified name in the collection.
'Declaration
Public Overloads Function IndexOf( _
ByVal As System.String _
) As System.Integer
'Usage
Dim instance As XLNamedRangeCollection
Dim name As System.String
Dim value As System.Integer
value = instance.IndexOf(name)
public System.int IndexOf(
System.string
)
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.