## StringCollection::IndexOf method


Looks for specific string in container.

```cpp
int System::Collections::Specialized::StringCollection::IndexOf(const System::String &value) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const System::String\& | [String](../../../system/string/) to look for. |

### ReturnValue

Index of first occurrence of specified string or -1 if not found.

## See Also

* Class [String](../../../system/string/)
* Class [StringCollection](../)
* Namespace [System::Collections::Specialized](../../)
* Library [Aspose.PUB for C++](../../../)
