## SortedList::IndexOfKey method


Looks for specific key.

```cpp
int System::Collections::Generic::SortedList<TKey, TValue>::IndexOfKey(TKey key) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| key | TKey | Key to look for. |

### ReturnValue

index of specified key or -1 if not found.

## See Also

* Class [SortedList](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.TeX for C++](../../../)
