Skip to main content
This object represents a single table cell of a table block. This is an element of a 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 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 and ITableCells::Split 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

Methods

TableCell Object Diagram

Output parameter

This object is the output parameter of the Item method of the TableCells object.

Samples

The object is used in the following code samples:

See also

TableBlock TableCells Working with Layout and Blocks Working with Text Working with Properties