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

# BatchTypes Object (IBatchTypes Interface)

This object represents a collection of [batch types](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batchtype.md). Several batch types for the most commonly used sets of processing settings can be defined in the project. The full set of the batch types defined in the project are available via the [**BatchTypes**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project.md#batchtypes) property of the corresponding [**Project**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/project.md) object.

The **BatchTypes** object is a so-called "[connectable object](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/connectableobjects.md)". The methods of the **BatchTypes** object report information about the collection modification through special outgoing interfaces. These interfaces are [**ICollectionEvents**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/icollectionevents.md) (for C++) and the dispinterface [**DICollectionEvents**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/icollectionevents.md) (for Visual Basic). It should be noted that Visual Basic users should not care for details of implementing event interfaces, as this development platform provides easy means for handling them.

## 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) | [**BatchType**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batchtype.md), read-only | Provides access to a single element of the collection. |

## Methods

| **Name** | **Description** |
| - | - |
| [**AddNew**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batchtypes-addnew.md) | Adds a new element to the end of the collection. |
| [**Delete**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/delete.md) | Removes the 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. |

## Related objects

![](https://mintcdn.com/abbyy/89WLEbAVqQ-ysQEU/images/flexi-capture/sdk/BatchTypes.gif?s=1eb49ec16bd592765f9df136babaa5b6)

## Samples

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

## See also

[**BatchType**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/batchtype.md)

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

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

[**ICollectionEvents**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/icollectionevents.md)

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