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

# RecognizeBlocks-Methode des Document-Objekts

Mit dieser Methode können Sie eine Sammlung von Blöcken im Dokument erkennen.

## Syntax

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

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

## Parameter

**Blocks**

\[in] Verweist auf das Objekt [**BlocksCollection**](https://docs.abbyy.com/de/flexi-capture/sdk/api-reference/blockscollection.md), das die zu erkennenden Blöcke enthält.

## Rückgabewerte

Diese Methode hat keine spezifischen Rückgabewerte. Sie gibt die [Standard-Rückgabewerte der Funktionen des ABBYY FlexiCapture SDK](https://docs.abbyy.com/de/flexi-capture/sdk/api-reference/errorcodes.md) zurück.

## Beispiele

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

## Siehe auch

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