iode.TableCell.align
- property TableCell.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") Loading .../fun.tbl 46 objects loaded >>> 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'