Chinese Simplified (简体中文)

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.

Syntax

HRESULT IndexOf(
  int  X,
  int  Y,
  int* Result
);
    

Parameters

X
[in] This variable specifies horizontal coordinate of the point (defined on vertical separators).
Y
[in] This variable specifies vertical coordinate of the point (defined on horizontal separators).
Result
[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.

Remarks

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

See also

TableCells

03.07.2024 8:50:25

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.