> ## 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 Paragraphs Object

This method finds the index of a paragraph in the collection of paragraphs. If there is no such paragraph in the collection, -1 is returned.

## Syntax

### C++

```cpp theme={null}
HRESULT IndexOf(
  IParagraph* Paragraph,
  int*        Result
);
```

### C\#

```csharp theme={null}
int IndexOf( IParagraph Paragraph );
```

### Visual Basic .NET

```vb theme={null}
Function IndexOf(Paragraph As IParagraph) As Integer
```

## Parameters

Paragraph

\[in] This parameter refers to the interface of the [Paragraph](/fine-reader/engine/api-reference/text-related-objects/paragraph) object.

Result

\[out, retval] A pointer to int variable that receives the return value of this method.

## 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).

## See also

[Paragraphs](/fine-reader/engine/api-reference/text-related-objects/paragraphs)
