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

# Add Method of Collection Objects

This method adds an element at the end of the collection. The method adds a reference to an existing object.

## Syntax

```vb Visual Basic .NET theme={null}
Sub Add(Value As <CollectionType>)
```

```cpp C++ theme={null}
HRESULT Add(
  <CollectionType> Value
);
```

## Parameters

**Value**

\[in] This parameter contains the newly added element. Its type depends on the type of collection and is described in the following table:

| **Collection type** | **Element type (Visual Basic/C++)** |
| - | - |
| [**BlockTypesCollection**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/blocktypescollection.md) | BlockTypeEnum/BlockTypeEnum |
| [**FieldDefinitionsCollection**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/fielddefinitionscollection.md) | FieldDefinition/IFieldDefinition\* |
| [**FieldValuesCollection**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/fieldvaluescollection.md) | FieldValue/IFieldValue\* |
| [**IntsCollection**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/intscollection.md) | Integer/int |
| [**RegionsCollection**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/regionscollection.md) | String/BSTR |
| [**SectionDefinitionsCollection**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/sectiondefinitionscollection.md) | SectionDefinition/ISectionDefinition\* |
| [**StringsCollection**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/stringscollection.md) | String/BSTR |
| [**TextsCollection**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/textscollection.md) | Text/IText |

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

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