PageTableArea
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.parser.data.PageArea
public class PageTableArea extends PageArea
Represents a table page area which is used to represent a table in the parsing by template functionality.
PageTableArea class is used to organize inheritors of PageArea class in table structure.
| Constructor | Description |
|---|---|
| PageTableArea(Iterable |
Initializes a new instance of the PageTableArea class. |
| Method | Description |
|---|---|
| getCells() | Gets the collection of cells. |
| getRowCount() | Gets the total number of the table rows. |
| getColumnCount() | Gets the total number of the table colums. |
| getRowHeight(int rowIndex) | Returns the row height. |
| getColumnWidth(int columnIndex) | Returns the column width. |
| getCell(int rowIndex, int columnIndex) | Gets the table cell by row and column indexes. |
public PageTableArea(Iterable<Double> rows, Iterable<Double> columns, Iterable<PageTableAreaCell> cells, Page page, Rectangle rectangle)
Initializes a new instance of the PageTableArea class.
Note: the C# project marks this constructor as internal (commit 954951f). In Java, “internal-to-the-assembly” does not translate cleanly to package-private because the producers ( WordProcessingParser , TableAreaParser , etc.) live in com.groupdocs.parser , not com.groupdocs.parser.data . The constructor is therefore kept
public so cross-package construction still works.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| rows | java.lang.Iterable<java.lang.Double> | The collection of row heights. |
| columns | java.lang.Iterable<java.lang.Double> | The collection of column widths. |
| cells | java.lang.Iterable<com.groupdocs.parser.data.PageTableAreaCell> | The collection of cells. |
| page | Page | The page that contains the table. |
| rectangle | Rectangle | The rectangular area that contains the table. |
public Collection<PageTableAreaCell> getCells()
Gets the collection of cells. A plain read-only collection of table cells.
Returns: java.util.Collection<com.groupdocs.parser.data.PageTableAreaCell> - A collection of table cells
public int getRowCount()
Gets the total number of the table rows.
Returns: int - An integer value that contains the total number of the table rows.
public int getColumnCount()
Gets the total number of the table colums.
Returns: int - An integer value that contains the total number of the table columns.
public double getRowHeight(int rowIndex)
Returns the row height.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| rowIndex | int | The zero-based index of the row. |
Returns: double - A double value that represents the height of the row.
public double getColumnWidth(int columnIndex)
Returns the column width.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| columnIndex | int | The zero-based index of the column. |
Returns: double - A double value that represents the width of the column.
public PageTableAreaCell getCell(int rowIndex, int columnIndex)
Gets the table cell by row and column indexes.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| rowIndex | int | The zero-based index of the cell row. |
| columnIndex | int | The zero-based index of the cell column. |
Returns: PageTableAreaCell - An instance of PageTableAreaCell class; null if no cell is found.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.