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

# Documents Object (IDocuments Interface)

This object is a collection of batch documents. Besides standard collection methods and properties, it contains the methods for managing documents in the collection (moving, merging, splitting). The properties and methods of the object return closed documents (**IDocument::LockType** = [LT\_None](https://docs.abbyy.com/flexi-capture/sdk/api-reference/locktypeenum.md)). To receive the collection of documents of a certain batch, use the **Documents** property of the corresponding [**Batch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch.md) object.

The **Documents** object is a so-called "[connectable object](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/connectableobjects.md)". The methods of the **Documents** 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) | [**Document**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/document.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** |
| - | - |
| [**AddNewFromPage**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documents-addnewfrompage.md) | Creates a new document at the specified position in the batch by extracting the specified page from an existing document. |
| [**FindById**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documents-findbyid.md) | Provides access to an element of the collection by the element identifier. |
| [**Item**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/item.md) | Provides access to a single element of the collection. |
| [**DeleteById**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/deletebyid.md) | Removes an element with the specified identifier from the collection. |
| [**DeleteAll**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/deleteall.md) | Removes all the elements from the collection. |
| [**Disassemble**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documents-disassemble.md) | Splits specified documents into pages. |
| [**Merge**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documents-merge.md) | Merges specified documents into one document. |
| [**MoveById**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documents-movebyid.md) | Changes the position of the specified document. |

## Related objects

![](https://mintcdn.com/abbyy/89WLEbAVqQ-ysQEU/images/flexi-capture/sdk/Documents.gif?s=05f0447357bb012e72267f0b1f709ab1)

## Samples

This object is used in the following code samples: [Classification](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/samples.md#classification), [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)

[**Batch**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batch.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)
