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

# Fields Object (IFields Interface)

This object is a collection of recognized [fields](https://docs.abbyy.com/flexi-capture/sdk/api-reference/field.md). It may be a collection of document sections, or a collection of child fields of a composite field.

> [!NOTE]
>
> When working with recognized data of a document you must take into account that a document may have complex tree-like structure: document consists of sections, sections contain fields and group of fields and all of these may be repeating (contain multiple instances). See [Working with Recognized Data](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/workingwithrecognizeddata.md) for details.

Besides standard collection methods and properties, it contains the **FindByName** method that allows you to find the field by its name.

The **Fields** object is a so-called "[connectable object](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/connectableobjects.md)". The methods of the **Fields** object report information about the collection modification through special outgoing interfaces. These interfaces are [**ICollectionEvents**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/icollectionevents.md) (for C++) and the dispinterface [**DICollectionEvents**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/icollectionevents.md) (for Visual Basic). It should be noted that Visual Basic users should not care for details of implementing event interfaces, as this development platform provides easy means for handling them.

## Properties

| **Name** | **Type** | **Description** |
| - | - | - |
| [**Count**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/count.md) | [**Integer**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/propertiestypes.md), read-only | Stores the number of elements in the collection. |
| [**Element**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/element.md) | [**Field**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/field.md), [read-only](https://docs.abbyy.com/flexi-capture/sdk/guided-tour/properties.md#readonly-properties) | Provides access to a single element of the collection. |

## Methods

| **Name** | **Description** |
| - | - |
| [**FindByName**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/fields-findbyname.md) | Finds an element by its name. |
| [**Item**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/item.md) | Provides access to a single element of the collection. |

## Related objects

![](https://mintcdn.com/abbyy/89WLEbAVqQ-ysQEU/images/flexi-capture/sdk/Fields.gif?s=7aa6be2b0834a3ba8666493601f6c09c)

## See also

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

[**Field**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/field.md)

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

[**ICollectionEvents**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/icollectionevents.md)

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

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