iode.TableCell.align
- TableCell.align
align: str
Alignment of the text in the cell.
- Parameters:
- alignTableCellAlign or str
The alignment to set for the cell. Possible values are CENTER, LEFT, RIGHT or DECIMAL.
Examples
>>> from iode import SAMPLE_DATA_DIR, tables, Table, TableCellAlign >>> tables.load(f"{SAMPLE_DATA_DIR}/fun.tbl") >>> table = tables["ANAPRIX"] >>> table[4][0].align 'LEFT' >>> table[4][0].align = TableCellAlign.CENTER >>> table[4][0].align 'CENTER' >>> table[4][0].align = "right" >>> table[4][0].align 'RIGHT'