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

# BlockTypesCollection（IBlockTypesCollection インターフェイス）

このオブジェクトは、[**BlockTypeEnum**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/blocktypeenum.md) 定数のコレクションを表します。標準的なコレクション機能を備えています。このオブジェクトは、パラメーターを必要とする ABBYY FlexiCapture SDK の関数にパラメーターを渡すための格納先として使用されます。また、ABBYY FlexiCapture SDK のメソッドの戻り値として返される場合もあります。

> [!WARNING]
>
> このコレクションは **IEnumerable** を実装していません。そのため、C# の **foreach** 文や Visual Basic の **for each** で要素を反復処理することはできません。ただし、インデックスで要素にアクセスする \[] 演算子は、[**Element**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/element.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) | [**BlockTypeEnum**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/blocktypeenum.md)、読み取り専用 | コレクションの 1 つの要素にアクセスできます。 |

## メソッド

| **名前** | **説明** |
| - | - |
| [**Add**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/add.md) | コレクションの末尾に新しい要素を追加します。 |
| [**DeleteAt**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/deleteat.md) | コレクションから要素を削除します。 |
| [**DeleteAll**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/deleteall.md) | コレクションからすべての要素を削除します。 |
| [**Item**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/item.md) | コレクションの 1 つの要素にアクセスできるようにします。 |

## 入力パラメーター

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

## サンプル

このオブジェクトは、次のコード サンプルで使用されています：[定型帳票](https://docs.abbyy.com/ja/flexi-capture/sdk/guided-tour/samples.md#fixedforms)

## 関連項目

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