NextGroup Method of the Text Object

This method returns the index of the next character in the text, which has the selected parameters different from such parameters of the character specified.

For example, if you set the value of the Mask parameter to CFL_Suspicious (which means that the ICharParams::IsSuspicious property should be taken into account) and the character with the Pos index is not suspicious, the method will return the index of the next suspicious character, and vice versa if the character with the Pos index is suspicious, the method will return the index of the next character, which is not suspicious.

Syntax

Visual Basic .NET

Function NextGroup( _
  Pos  As Integer, _
  Mask As Integer _
) As Integer
    

C++

HRESULT NextGroup(
  int  Pos,
  int  Mask,
  int* Result
);
    

Parameters

Pos
[in] This variable contains the index of the character, which defines parameters of the search for the next character.
Mask
[in] This variable contains any OR combination of the CharParamsFlags flags. It defines what character parameters are taken into account when searching for the next character.
Result
[out, retval] A pointer to an int variable that receives the position of the next character, which has the selected parameters different from such parameters of the character with the Pos index. If the next character is not found, the length of the paragraph is returned.

Return values

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

See also

Text

CharParamsFlags

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.