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

# Layout オブジェクトの SortedBlocks プロパティ

> ABBYY FineReader Engine API の Layout オブジェクトの SortedBlocks プロパティ。レイアウト内のブロックを論理順に並べたコレクションを返します。左上隅を基準に、まず左から右、次に上から下の順に並べ替えられます。グループ化の動作は SortingBlocksParams で設定できます。

Layout のブロックを論理的な順序で並べたコレクションを返します。

このコレクションには、[Blocks](/ja/fine-reader/engine/api-reference/layout-related-objects/layout#blocks) プロパティが返すブロックと同じものが含まれます。これらのブロックは、各ブロックの左上隅の位置に基づいて、まず左から右、次に上から下の順に並べ替えられます。互いに近接しているブロックは、1 つの論理グループの一部と見なされます。同じグループに属するブロック間の許容間隔は、[SortingBlocksParams](/ja/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/sortingblocksparams) オブジェクトを使用して設定できます。

<Accordion title="例を見る">
  <img src="https://mintcdn.com/abbyy/i-EfCQVmseNiPQcp/images/fine-reader/engine/sortedblocks.gif?s=3bca21e4b31af44a80d161f6152b6ee0" alt="SortedBlocks" width="268" height="297" data-path="images/fine-reader/engine/sortedblocks.gif" />
</Accordion>

<div id="syntax">
  ## 構文
</div>

<div id="c">
  ### C++
</div>

```cpp theme={null}
HRESULT get_SortedBlocks(
  ISortingBlocksParams*   SortingBlocksParams,
  ILayoutBlocks**         Result
);
```

### C\#

```csharp theme={null}
ILayoutBlocks get_SortedBlocks( ISortingBlocksParams SortingBlocksParams );
```

<div id="visual-basic-net">
  ### Visual Basic .NET
</div>

```vb theme={null}
ReadOnly Property SortedBlocks([SortingBlocksParams As ISortingBlocksParams = Nothing]) As ILayoutBlocks
```

<div id="parameters">
  ## パラメーター
</div>

SortingBlocksParams

\[in] この変数は、ブロックをグループに結合するためのパラメーターを含む [SortingBlocksParams](/ja/fine-reader/engine/api-reference/parameter-objects/preprocessing-analysis-recognition-and-synthesis-parameters/sortingblocksparams) オブジェクトを表します。このパラメーターは省略可能です。既定の設定を使用する場合は、NULL を渡すことができます。

Result

\[out, retval] 出力 [LayoutBlocks](/ja/fine-reader/engine/api-reference/layout-related-objects/layoutblocks) オブジェクトのインターフェイスポインターを受け取る ILayoutBlocks\* ポインター変数へのポインターです。

<div id="return-values">
  ## 戻り値
</div>

この関数固有の戻り値はありません。[ABBYY FineReader Engine 関数の標準の戻り値](/ja/fine-reader/engine/api-reference/return-codes)を返します。

<div id="see-also">
  ## 関連項目
</div>

[Layout](/ja/fine-reader/engine/api-reference/layout-related-objects/layout)

[LayoutBlocks](/ja/fine-reader/engine/api-reference/layout-related-objects/layoutblocks)
