TableCollection
Overview
TableCollection is a class in Aspose.Cells FOSS for Python.
Collection of Table objects belonging to a worksheet (ws.tables).
This class declares 9 methods for TableCollection objects in Python programs.
Available methods include: Add, AddWithRange, __getitem__, __init__, __iter__, __len__, add, add_with_range, copy.
Public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package.
Properties: count.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Gets the count. |
Methods
| Signature | Description |
|---|---|
__init__(worksheet) | Calls init(worksheet) on this TableCollection instance. |
add(start_row: int, start_col: int, end_row: int, end_col: int, has_headers: bool, name: str) → Table | Create a new table from 0-based row/column indices and add it to the worksheet. |
add_with_range(cell_range: str, name: str, has_headers: bool) → Table | Create a new table from an A1 range string like ‘A1:D10’. |
Add(start_row: int, start_col: int, end_row: int, end_col: int, has_headers: bool, name: str) → Table | Calls Add(start_row, start_col, end_row, end_col, has_headers, name) on this TableCollection instance. |
AddWithRange(cell_range: str, name: str, has_headers: bool) → Table | Calls AddWithRange(cell_range, name, has_headers) on this TableCollection instance. |
__len__() → int | Calls len on this TableCollection instance. |
__iter__() | Calls iter on this TableCollection instance. |
__getitem__(index) | Calls getitem(index) on this TableCollection instance. |
copy(new_ws) → 'TableCollection' | Calls copy(new_ws) on this TableCollection instance. |