SetFieldRegion Method of the Page Object

This method sets the region of the field for the specified Field object. You may use this method for moving or retraining the field.

Note: The name of the specified field must not contain spaces, otherwise it couldn't be trained.

Syntax

Visual Basic .NET

Sub SetFieldRegion( _
Field As Field, _
Regions As RegionsCollection, _
IsModified As Boolean _
)
    

C++

HRESULT SetFieldRegion(
  IField*  Field,
  IRegionsCollection* Regions,
  VARIANT_BOOL        IsModified
);
    

Parameters

Field
[in] This variable specifies the field as the Field object.
Regions
[in] Refers to the RegionsCollection object that specifies the regions of the field. Note that the field may have several regions if it occurs several times in the document.
IsModified
[in] You must set this variable to TRUE if the region of the field was moved. Otherwise the value of this parameter is FALSE.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.

Samples

This method is used in the following code samples: Invoices Processing and Training.

See also

Page
Field

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.