CollectionBase
T
IndexOf Method
|
Returns the zero-based index of the first occurrence of a specified item within the collection.
Namespace:
Spire.Xls.Core.Spreadsheet.Collections
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public int IndexOf(
T item
)
Public Function IndexOf (
item As T
) As Integer
public:
virtual int IndexOf(
T item
) sealed
abstract IndexOf :
item : 'T -> int
override IndexOf :
item : 'T -> int
Parameters
-
item
-
Type:
T
The item to locate in the collection.
Return Value
Type:
Int32
The zero-based index of the first occurrence of item, if found; otherwise, -1.
Implements
IList
T
IndexOf(T)
See Also