Example: Cells property

This example displays the cell number of the second table of the document.

  TextTables tables = document.getTables();
  TextTable table = tables.item(2);
  TextTableCells cells = table.getCells();
  System.out.println(cells.getCount());

Related information

Cells property