> ## 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 Interface)

This object represents a collection of [**BlockTypeEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/blocktypeenum.md) constants. It exposes the standard collection functionality. This object serves as a storage to pass parameters to those ABBYY FlexiCapture SDK functions that require them. It may also be return value of ABBYY FlexiCapture SDK methods.

> [!WARNING]
>
> This collection does not implement **IEnumerable**. You cannot iterate through its elements using the **foreach** statement in C# or **for each** in Visual Basic. The \[] operator for accessing an element by its index works, as it is implemented by the [**Element**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/element.md) property.

## Properties

| **Name** | **Type** | **Description** |
| - | - | - |
| [**Count**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/count.md) | [**Integer**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md), read-only | Stores the number of elements in the collection. |
| [**Element**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/element.md) | [**BlockTypeEnum**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/blocktypeenum.md), read-only | Provides access to a single element of the collection. |

## Methods

| **Name** | **Description** |
| - | - |
| [**Add**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/add.md) | Adds a new element at the end of the collection. |
| [**DeleteAt**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/deleteat.md) | Removes an element from the collection. |
| [**DeleteAll**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/deleteall.md) | Removes all the elements from the collection. |
| [**Item**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/item.md) | Provides access to a single element of the collection. |

## Input parameter

This object is the input parameter of the [**AddNewFixed**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documentdefinitions-addnewfixed.md) method of the [**DocumentDefinitions**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documentdefinitions.md) object.

## Samples

This object is used in the following code samples: [Fixed Forms](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/samples.md#fixedforms).

## See also

[Working with Collections](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/collections.md)
