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

# BlocksCollection Object (IBlocksCollection Interface)

This object represents a collection of blocks. This is a collection of references to [**Block**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/block.md) objects. This is a subset of document blocks, which belongs to some field. This object is also used as a parameter of the [**IDocument::RecognizeBlocks**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/document-recognizeblocks.md) method. See [Working with Collections](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/collections.md).

## 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) | [**Block**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/block.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** |
| - | - |
| [**Add**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/blockscollection-add.md) | Adds an element at the end of the collection. |
| [**Item**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/item.md) | Provides access to a [**Block**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/block.md) object in the collection. |

## Related objects

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

## Output parameter

This object is the output parameter of the [**CreateBlocksCollection**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/engine-createxxx.md) method of the [**Engine**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/engine.md) object.

## Input parameter

This object is the input parameter of the [**RecognizeBlocks**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/document-recognizeblocks.md) method of the [**Document**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/document.md) object.

## See also

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

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

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

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

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