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

# Blocks Object (IBlocks Interface)

This object represents a collection of blocks. It may exist as subobject of the [**Page**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/page.md#blocks) or [**Block**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/block.md#children) object, and serves as a storage of page blocks or a storage of child blocks of the block, respectively.

The **Blocks** object is a so-called "[connectable object](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/connectableobjects.md)". The methods of the **Blocks** 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) | [**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** |
| - | - |
| [**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/Blocks.gif?s=ac25a677bc58060904655a13993f61f2)

## See also

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

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

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