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

# Pages Object (IPages Interface)

This object is a collection of document pages. Besides standard collection methods and properties, it contains the [**MoveById**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pages-movebyid.md) method that allows you to move pages in the document. To access the pages of the certain document use the [**Pages**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/document.md#pages) property of the corresponding [**Document**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/document.md) object.

The **Pages** object is a so-called "[connectable object](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/connectableobjects.md)". The methods of the **Pages** object report information about the collection modification through special outgoing interfaces. These interfaces are [**ICollectionEvents**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/icollectionevents.md) (for C++) and the dispinterface [**DICollectionEvents**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/icollectionevents.md) (for Visual Basic). It should be noted that Visual Basic users should not care for details of implementing event interfaces, as this development platform provides easy means for handling them.

## Properties

| **Name** | **Type** | **Description** |
| - | - | - |
| [**Count**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/count.md) | [**Integer**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md), read-only | Stores the number of elements in the collection. |
| [**Element**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/element.md) | [**Page**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/page.md), [read-only](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | Provides access to a single element of the collection. |

## Methods

| **Name** | **Description** |
| - | - |
| [**Attach**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pages-attach.md) | Moves the specified page from one document to another. |
| [**DeleteById**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/deletebyid.md) | Removes an element with the specified identifier from the collection. |
| [**Item**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/item.md) | Provides access to a single element of the collection. |
| [**MoveById**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/pages-movebyid.md) | Moves an element to the specified position in the collection. |

## Related objects

![](https://mintcdn.com/abbyy/DG4YBah30S0eFFo5/images/flexi-capture/sdk/Pages.gif?s=a26f2122f8c6020743f5d44ad31a11b7)

## Samples

This method is used in the following code samples: [Invoices Processing and Training](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/samples.md#invoicesprocessingandtraining).

## See also

[**Document**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/document.md)

[**Page**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/page.md)

[Working with Collections](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/collections.md)

[**ICollectionEvents**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/icollectionevents.md)

[Working with Connectable Objects](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/connectableobjects.md)

[Working with Properties](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md)
