> ## 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 オブジェクト (IBlocksCollection インターフェイス)

このオブジェクトはブロックのコレクションを表します。[**Block**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/block.md) オブジェクトへの参照を格納するコレクションであり、特定のフィールドに属するドキュメントブロックのサブセットです。このオブジェクトは、[**IDocument::RecognizeBlocks**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/document-recognizeblocks.md) メソッドのパラメーターとしても使用されます。詳しくは[コレクションの操作](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/collections.md)を参照してください。

## Properties

| **名前** | **型** | **説明** |
| - | - | - |
| [**Count**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/count.md) | [**Integer**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/propertiestypes.md)、読み取り専用 | コレクション内の要素数を格納します。 |
| [**Element**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/element.md) | [**Block**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/block.md)、[読み取り専用](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | コレクションの 1 つの要素にアクセスします。 |

## メソッド

| **名前** | **説明** |
| - | - |
| [**Add**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/blockscollection-add.md) | コレクションの末尾に要素を追加します。 |
| [**Item**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/item.md) | コレクション内の [**Block**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/block.md) オブジェクトにアクセスします。 |

## 関連オブジェクト

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

## 出力パラメーター

このオブジェクトは、[**Engine**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine.md) オブジェクトの [**CreateBlocksCollection**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/engine-createxxx.md) メソッドの出力パラメーターです。

## 入力パラメーター

このオブジェクトは、[**Document**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/document.md) オブジェクトの [**RecognizeBlocks**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/document-recognizeblocks.md) メソッドの入力パラメーターです。

## 関連項目

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

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

[コレクションの操作](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/collections.md)

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

[Propertiesの操作](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/properties.md)
