---
title: "System::Collections::Generic::IReadOnlyList::idx_get method"
url: "https://reference.aspose.com/pdf/cpp/system.collections.generic/ireadonlylist/idx_get/"
product: "Aspose.PDF for C++ API Reference"
description: "System::Collections::Generic::IReadOnlyList::idx_get method. Gets element at specified index in C++."
---

## IReadOnlyList::idx_get method


Gets element at specified index.

```cpp
virtual T System::Collections::Generic::IReadOnlyList<T>::idx_get(int32_t index) const =0
```


| Parameter | Type | Description |
| --- | --- | --- |
| index | int32_t | [Index](../../../system/index/) of element to get. |

### ReturnValue

Copy of element at specified index.

## See Also

* Class [IReadOnlyList](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
