Method IndexOf
IndexOf(string)
Returns the index of the first occurrence of given string in the string collection.
public virtual int IndexOf(string item)
Parameters
itemstringThe string to locate in string collection.
Returns
- int
The index of the first occurrence of string within the string collection, if found; otherwise -1.