Skip to main content
All cells of a table block form a single collection represented by TableCells object. Besides the standard collection functionality, this object contains methods for merging and splitting groups of table cells and method for finding table cell index in collection by its position in a base table grid. The collection is accessible via the TableBlock object.
  • The indexing of ABBYY FineReader Engine collections starts with 0.
  • The foreach statement in C# (for each in Visual Basic .NET) can be used to manipulate the collection.

Properties

NameTypeDescription
ApplicationEngine, read-onlyReturns the Engine object.
Countint, read-onlyStores the number of elements in the collection.
ElementTableCell, read-onlyProvides access to a single element of the collection.

Methods

NameDescription
IndexOfReturns an index of the cell that corresponds to the specified point in base coordinates. This method may be useful if you want to obtain indices of all cells from one row or column.
ItemProvides access to a single element of the collection.
MergeMerges a group of cells inside the specified rectangle.
SplitSplits a group of cells inside the specified rectangle.
TableCells Object Diagram

Samples

FREngine.IBlock block;
// Retrieving table cells
if (block.Type == FREngine.BlockTypeEnum.BT_Table)
{
 FREngine.ITableBlock tableBlock = block.GetAsTableBlock();
 for( int iCell = 0; iCell < tableBlock.Cells.Count; iCell++ ) {
  FREngine.ITableCell cell = tableBlock.Cells[iCell];
  // do something with the cell
 }
}
The object is used in the following code samples: Windows: RecognizedTextProcessing; and demo tools: Engine Predefined Processing Profiles.

See also

TableBlock TableCell Working with Layout and Blocks Working with Text Working with Collections Working with Properties