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

# Método Add de los objetos de colección

Este método agrega un elemento al final de la colección. Lo que se agrega es una referencia a un objeto existente.

## Sintaxis

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

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

## Parámetros

**Value**

\[in] Este parámetro contiene el elemento recién agregado. Su tipo depende del tipo de colección, como se indica en la siguiente tabla:

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

## Valores de retorno

Este método no tiene valores de retorno específicos. Devuelve los [valores de retorno estándar de las funciones de ABBYY FlexiCapture SDK](https://docs.abbyy.com/es/flexi-capture/sdk/api-reference/errorcodes.md).

## Consulte también

[Uso de Colecciones](https://docs.abbyy.com/es/flexi-capture/sdk/guided-tour/collections.md)
