## StringCollection::IndexOf method


Söker efter en specifik sträng i behållaren.

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


| Parameter | Typ | Beskrivning |
| --- | --- | --- |
| value | const System::String\& | [String](../../../system/string/) att leta efter. |

### ReturnValue

[Index](../../../system/index/) of first occurrence of specified string or -1 if not found.

## Se även

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