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

# Categories Object (ICategories Interface)

This object represents a collection of [Category](/fine-reader/engine/api-reference/classification-related-objects/category) objects. Use it to populate the categorized data set which will be used to train a classifier.

* 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                                            |
| --------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| 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) | [Category](/fine-reader/engine/api-reference/classification-related-objects/category), [read-only](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties#readonly_properties) | Provides access to a single element of the collection. |

## Methods

| Name                                                                                                                    | Description                                                                      |
| ----------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| [AddNew](/fine-reader/engine/api-reference/classification-related-objects/categories/addnew-method)                     | Creates a new category with the specified label and adds it into 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.                                          |
| [Find](/fine-reader/engine/api-reference/classification-related-objects/categories/find-method)                         | Finds the category by the label.                                                 |
| [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/6udH-pkk8zkVafYH/images/fine-reader/engine/categories.gif?s=fb3904a00afa8aab4d040506875e9a71" alt="Categories" width="193" height="167" data-path="images/fine-reader/engine/categories.gif" />[](/fine-reader/engine/api-reference/classification-related-objects/trainingdata#categories)[](/fine-reader/engine/api-reference/classification-related-objects/trainingdata)[](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/element-property)[](/fine-reader/engine/api-reference/classification-related-objects/classificationobject)[](/fine-reader/engine/api-reference/classification-related-objects/category#objects)[](/fine-reader/engine/api-reference/classification-related-objects/classificationobjects)[](/fine-reader/engine/api-reference/classification-related-objects/category)

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

## Samples

This object is used in the [Classification](/fine-reader/engine/guided-tour/samples#classification) demo tool in Windows and the [Classification](/fine-reader/engine/guided-tour/samples#classification_unix) code sample in Linux and macOS.

## See also

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