> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TableCell Object (ITableCell Interface)

This object represents a single table cell of a table block. This is an element of a [TableCells](/fine-reader/engine/api-reference/layout-related-objects/tablecells) collection. The object provides access to the name of the cell, its coordinates in pixels, and contents of the cell.

Each table cell is represented as a separate block. To access contents of the cell you should use the Block property. The type of the contents (e.g., text, picture) depends on the [IBlock::Type](/fine-reader/engine/api-reference/layout-related-objects/block#type) property. If the table cell contains text, you can access the text of the table cell and other text properties using the IBlock::GetAsTextBlock method.

A cell has four coordinates — the coordinates of the left, right, top and bottom separators that enclose it. Cell coordinates are the coordinates in pixels. Table cell coordinates cannot be changed directly. They are affected by [ITableCells::Merge](/fine-reader/engine/api-reference/layout-related-objects/tablecells/merge-method) and [ITableCells::Split](/fine-reader/engine/api-reference/layout-related-objects/tablecells/split-method) methods. But be aware that these operations not only change attributes of a single cell, but affect the cells collection as a whole, adding or removing cells.

## Properties

| Name        | Type                                                                                                                                                                                                          | Description                                                   |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------- |
| Application | [Engine](/fine-reader/engine/api-reference/engine-object-iengine-interface), [read-only](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties#readonly_properties) | Returns the Engine object.                                    |
| Block       | [Block](/fine-reader/engine/api-reference/layout-related-objects/block), [read-only](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties#readonly_properties)     | Provides access to the block of the cell.                     |
| Bottom      | [int](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties), read-only                                                                                             | Stores coordinate of the bottom border of the cell in pixels. |
| Left        | [int](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties), read-only                                                                                             | Stores coordinate of the left border of the cell in a pixels. |
| Right       | [int](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties), read-only                                                                                             | Stores coordinate of the right border of the cell in pixels.  |
| Top         | [int](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties), read-only                                                                                             | Stores coordinate of the top border of the cell in pixels.    |

## Methods

| Name                                                                                                         | Description                                                        |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------ |
| [ChangeBlockType](/fine-reader/engine/api-reference/layout-related-objects/tablecell/changeblocktype-method) | Changes the type of the block which corresponds to the table cell. |

## Related objects

<img src="https://mintcdn.com/abbyy/i-EfCQVmseNiPQcp/images/fine-reader/engine/tablecell.gif?s=b07c8ddf2acef1ea9e1f9fa6f736edc3" alt="TableCell" width="227" height="201" data-path="images/fine-reader/engine/tablecell.gif" />[](/fine-reader/engine/api-reference/layout-related-objects/block)[](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/element-property)[](/fine-reader/engine/api-reference/layout-related-objects/tablecells)[](/fine-reader/engine/api-reference/layout-related-objects/tableblock)[](/fine-reader/engine/api-reference/layout-related-objects/block)[](/fine-reader/engine/api-reference/layout-related-objects/layoutblocks)[](/fine-reader/engine/api-reference/layout-related-objects/layout)

[Object Diagram](/fine-reader/engine/api-reference/object-diagram)

## Output parameter

This object is the output parameter of the [Item](/fine-reader/engine/visual-components-reference/supplementary-objects/spellwordcollection/item-method) method of the [TableCells](/fine-reader/engine/api-reference/layout-related-objects/tablecells) object.

## Samples

<Accordion title="C# code">
  ```csharp theme={null}
  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
   }
  }
  ```
</Accordion>

The object is used in the following code samples:

* Windows: [RecognizedTextProcessing](/fine-reader/engine/guided-tour/samples#recognizedtextprocessing); and demo tools: [Engine Predefined Processing Profiles](/fine-reader/engine/guided-tour/samples#engine_predefined_processing_profiles).

## See also

[TableBlock](/fine-reader/engine/api-reference/layout-related-objects/tableblock)

[TableCells](/fine-reader/engine/api-reference/layout-related-objects/tablecells)

[Working with Layout and Blocks](/fine-reader/engine/guided-tour/advanced-techniques/working-with-layout-and-blocks)

[Working with Text](/fine-reader/engine/guided-tour/advanced-techniques/working-with-text)

[Working with Properties](/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties)
