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

# Swap Method of the FRPages Object

This method swaps two pages with the specified indices.

## Syntax

### C++

```cpp theme={null}
HRESULT Swap(
  int FirstIndex,
  int SecondIndex
);
```

### C\#

```csharp theme={null}
void Swap(
  int FirstIndex,
  int SecondIndex
);
```

### Visual Basic .NET

```vb theme={null}
Sub Swap( _
  FirstIndex As Integer, _
  SecondIndex As Integer _
)
```

## Parameters

FirstIndex

\[in] This parameter contains the index of the first page.

SecondIndex

\[in] This parameter contains the index of the second 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 may report 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)
