IndexOf Method of the TableCells Object

This method returns the index of a cell that corresponds to the specified point in base coordinates of the table grid. By the base grid here we assume the grid formed by table borders and separators. Each vertical separator increments the horizontal coordinate by one, and each horizontal separator increments the vertical coordinate by one. Coordinate axes are oriented from left to right and from top to bottom.

This method may be useful if you want to obtain indices of all cells from one row or column. The horizontal coordinate corresponds to the row number, while the vertical — to the column number. The number of rows (columns) in the table is equal to the number of horizontal (vertical) separators minus 1.



  int  X,
  int  Y,
  int* Result


int IndexOf(
  int X,
  int Y

Visual Basic .NET

Function IndexOf( _
  X As Integer, _
  Y As Integer _
) As Integer


[in] This variable specifies horizontal coordinate of the point (defined on vertical separators).
[in] This variable specifies vertical coordinate of the point (defined on horizontal separators).
[out, retval] A pointer to int variable that receives the return value of this method.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.


The point specified should not exceed the table grid; otherwise, an error code is returned.

See also


24.03.2023 8:51:52

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.