> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# IndexOf Method of the FRPages Object

This method returns the index of a page in the collection. If there is no such page in the collection, -1 is returned.

## Syntax

### C++

```cpp theme={null}
HRESULT IndexOf(
  IFRPage* Page,
  int*     Index
);
```

### C\#

```csharp theme={null}
int IndexOf( IFRPage Page );
```

### Visual Basic .NET

```vb theme={null}
Function IndexOf(Page As IFRPage) As Integer
```

## Parameters

Page

\[in] Refers to the [FRPage](/fine-reader/engine/api-reference/document-related-objects/frpage) object which corresponds to the page that must be found.

Index

\[out, retval] This parameter contains the index of element which corresponds to the specified page.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## Remarks

This method does not report any events to the listeners attached to the IConnectionPointContainer interface of the [FRPages](/fine-reader/engine/api-reference/document-related-objects/frpages) object.

## See also

[FRPages](/fine-reader/engine/api-reference/document-related-objects/frpages)
