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

# Document オブジェクトの RecognizeBlocks メソッド

このメソッドは、ドキュメント内のブロックのコレクションを認識します。

## 構文

```vb Visual Basic .NET theme={null}
Sub RecognizeBlocks(Blocks As BlocksCollection)
```

```cpp C++ theme={null}
HRESULT RecognizeBlocks(
  IBlocksCollection* Blocks
);
```

## パラメーター

**Blocks**

\[in] 認識対象のブロックを格納した [**BlocksCollection**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/blockscollection.md) オブジェクトを参照します。

## 戻り値

このメソッドには固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## サンプル

> [accordion] C++ (COM) コード
>
> ```cpp theme={null}
> FCEngine::IEnginePtr Engine;
> ...
> FCEngine::IBlockPtr block;
> FCEngine::IDocumentPtr document;
> FCEngine::IBlocksCollectionPtr blocks = Engine->CreateBlocksCollection();
> blocks->Add(block);
> ...
> document->RecognizeBlocks(blocks);
> ```

## 関連項目

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