Fields Object (IFields Interface)

This object is a collection of recognized fields. 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 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". The methods of the Fields object report information about the collection modification through special outgoing interfaces. These interfaces are ICollectionEvents (for C++) and the dispinterface DICollectionEvents (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 Integer, read-only Stores the number of elements in the collection.
Element Field, read-only Provides access to a single element of the collection.

Methods

Name Description
FindByName Finds an element by its name.
Item Provides access to a single element of the collection.

Related objects

See also

Working with Recognized Data

Field

Working with Collections

ICollectionEvents

Working with Connectable Objects

Working with Properties

15.08.2023 13:19:30

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.