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

# TrainingImagesCollection Object (ITrainingImagesCollection Interface)

This object represents a collection of [TrainingImage](/fine-reader/engine/api-reference/image-related-objects/trainingimage) objects. It is a set of images which are used for user pattern training via the [IEngine::TrainUserPattern](/fine-reader/engine/api-reference/engine-object-iengine-interface/supplementary-methods/trainuserpattern-method) method.

* The indexing of ABBYY FineReader Engine collections starts with 0.
* The foreach statement in C# (for each in Visual Basic .NET) can be used to manipulate the collection.

## Properties

| Name                                                                                                                  | Type                                                                                                                                                                                                          | Description                                            |
| --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| Application                                                                                                           | [Engine](/fine-reader/engine/api-reference/engine-object-iengine-interface), [read-only](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties#readonly_properties) | Returns the Engine object.                             |
| Count                                                                                                                 | [int](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties), read-only                                                                                             | Stores the number of elements in the collection.       |
| [Element](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/element-property) | [TrainingImage](/fine-reader/engine/api-reference/image-related-objects/trainingimage)                                                                                                                        | Provides access to a single element of the collection. |

## Methods

| Name                                                                                                                    | Description                                                                                         |
| ----------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| [Add](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/add-method)             | Adds an existing object of the TrainingImage type at the end of the collection.                     |
| [DeleteAll](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/deleteall-method) | Removes all the elements from the collection.                                                       |
| [DeleteAt](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/deleteat-method)   | Removes an element from the collection.                                                             |
| [InsertAt](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/insertat-method)   | Inserts an existing object of the TrainingImage type into the specified position in the collection. |
| [Item](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/item-method)           | Provides access to a single element of the collection.                                              |

## Related objects

<img src="https://mintcdn.com/abbyy/B_SRGbkkbQ9YH40E/images/fine-reader/engine/trainingimagescollection.gif?s=820cbdd4ac02110bf9fc9acb6178cc57" alt="TrainingImagesCollection" width="152" height="60" data-path="images/fine-reader/engine/trainingimagescollection.gif" />[](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/element-property)[](/fine-reader/engine/api-reference/image-related-objects/trainingimage)

[Object Diagram](/fine-reader/engine/api-reference/object-diagram)

## Output parameter

This collection is the output parameter of the [CreateTrainingImagesCollection](/fine-reader/engine/api-reference/engine-object-iengine-interface/creation-methods/createlessobjectgreater-methods) method of the [Engine](/fine-reader/engine/api-reference/engine-object-iengine-interface) object.

## Input parameter

This collection is passed as an input parameter to the [TrainUserPattern](/fine-reader/engine/api-reference/engine-object-iengine-interface/supplementary-methods/trainuserpattern-method) method of the [Engine](/fine-reader/engine/api-reference/engine-object-iengine-interface) object.

## See also

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

[Recognizing with Training](/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements/recognizing-with-training) (Win)

[Training User Patterns](/fine-reader/engine/guided-tour/advanced-techniques/using-gui-elements/training-user-patterns) (Win)

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