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

<Note>
  This is a common method. Any platform-specific implementation limitations will be listed at the top of the topics for the objects using this method.
</Note>

This method adds an existing object at the end of the collection.

## Syntax

### C++

```cpp theme={null}
HRESULT Add( I<ElementType>* Value );
```

### C\#

```csharp theme={null}
void Add( I<ElementType> Value );
```

### Visual Basic .NET

```vb theme={null}
Sub Add(Value As I<ElementType>)
```

## Parameters

Value

\[in] Contains the newly added element. ElementType is the type of the objects forming the collection.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## Remarks

The table below describes the collections which provide this method and the types of elements in the collections:

| Collection type                                                                                                                                                                           | Element type                                                                                                  |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| [ClassificationObjects](/fine-reader/engine/api-reference/classification-related-objects/classificationobjects)                                                                           | [ClassificationObject](/fine-reader/engine/api-reference/classification-related-objects/classificationobject) |
| [IntsCollection](/fine-reader/engine/api-reference/supplementary-objects-and-methods/intscollection)                                                                                      | [int](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties)        |
| [OfficeConverters](/fine-reader/engine/api-reference/image-related-objects/officeconverters) <br /><br /> **Note:** *Collection is implemented for Windows and Linux.*                    | [OfficeConverterTypeEnum](/fine-reader/engine/api-reference/enumerations/officeconvertertypeenum)             |
| [RegionsCollection](/fine-reader/engine/api-reference/supplementary-objects-and-methods/regionscollection)                                                                                | [Region](/fine-reader/engine/api-reference/supplementary-objects-and-methods/region)                          |
| [SpellReplacementCollection](/fine-reader/engine/visual-components-reference/supplementary-objects/spellreplacementcollection) <br /><br /> **Note:** *Collection available for Windows.* | [SpellReplacement](/fine-reader/engine/visual-components-reference/supplementary-objects/spellreplacement)    |
| [StringsCollection](/fine-reader/engine/api-reference/supplementary-objects-and-methods/stringscollection)                                                                                | [BSTR](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties)       |
| [TrainingImagesCollection](/fine-reader/engine/api-reference/image-related-objects/trainingimagescollection)                                                                              | [TrainingImage](/fine-reader/engine/api-reference/image-related-objects/trainingimage)                        |

## Samples

<Accordion title="C# code">
  ```csharp theme={null}
   
  for( int i = 0; i < Document.Pages.Count; i++ )
  {
   if( Document.Pages[i].PageStructureOutOfDate )
   {
    pageIndices.Add( i );
   }
  }
  ```
</Accordion>

The method is used in the following code samples: [VisualComponents](/fine-reader/engine/guided-tour/samples#visualcomponents) (Win).

## See also

[Working with Collections](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-collections)
