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

NameTypeAccessDescription
countintReadGets the count.

Methods

SignatureDescription
__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) → TableCreate 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) → TableCreate 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) → TableCalls 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) → TableCalls AddWithRange(cell_range, name, has_headers) on this TableCollection instance.
__len__() → intCalls 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.

See Also

 English