Skip to main content
This object provides access to specific properties of a table block. The ITableBlock interface is derived from the IBlock interface and inherits all its properties. The region of blocks of this type may consist of one rectangle only. The structure of the table is described by two collections of table separators, horizontal and vertical (the HSeparators and VSeparators properties), and a collection of table cells (the Cells property). Each table cell is treated as a block of some type. The number of rows (columns) in the table is equal to the number of horizontal (vertical) separators minus 1. The recognized text is a property of a single cell, not of the entire table. To access the recognized text of a table block, you should do the following:
  1. Obtain the collection of table cells using the Cells property.
  2. Select the desired cell. Use the methods of the TableCells object.
  3. Obtain the block object of the cell (the ITableCell::Block property).
  4. Check that the block is of the type BT_Text (the IBlock::Type property) and receive the TextBlock object using the IBlock::GetAsTextBlock method.
  5. Use the ITextBlock::Text property.

Properties

Methods

Windows

TableBlock

Linux and macOS

TableBlockLinuxMac Object Diagram

Output parameter

This object is the output parameter of the GetAsTableBlock method of the Block object.

Samples

The object is used in the following code samples:

See also

Block Working with Layout and Blocks Working with Text Working with Properties