- Obtain the collection of table cells using the Cells property.
- Select the desired cell. Use the methods of the TableCells object.
- Obtain the block object of the cell (the ITableCell::Block property).
- Check that the block is of the type BT_Text (the IBlock::Type property) and receive the TextBlock object using the IBlock::GetAsTextBlock method.
- Use the ITextBlock::Text property.
Properties
| Name | Type | Description |
|---|---|---|
| Cells | TableCells, read-only | Provides access to the cells collection of the table block. The collection always contains at least one cell, even if there are no table separators in the table. The cells in the collection are arranged in the logical reading order. |
| HSeparators | TableSeparators, read-only | Provides access to horizontal separators collection of the table block. This collection always contains at least two separators corresponding to the table block top and bottom. |
| VSeparators | TableSeparators, read-only | Provides access to vertical separators collection of the table block. This collection always contains at least two separators corresponding to the table block left and right borders. |
Methods
| Name | Description |
|---|---|
| FindBaseCellFromPoint | Allows you to find cell position in the base grid from the pixel on image. 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. |
| InitializeGrid | Initializes table grid for the table block. |
Related objects
Windows
Linux and macOS
Object Diagram
Output parameter
This object is the output parameter of the GetAsTableBlock method of the Block object.Samples
C# code
C# code
- Windows: RecognizedTextProcessing; and demo tools: Engine Predefined Processing Profiles.
