Table
Overview
Table is a class in Aspose.Slides for Python.
Inherits from: GraphicalObject, ITable.
Represents a table on a slide.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
graphical_object_lock | IGraphicalObjectLock | Read | Provides access to lock settings that control editing of the table |
rows | IRowCollection | Read | Returns a collection representing all rows in the table |
columns | IColumnCollection | Read | |
table_format | ITableFormat | Read | Gives access to formatting options such as borders and fill for the table |
style_preset | TableStylePreset | Read | Gets or sets a predefined style applied to the table |
right_to_left | bool | Read | Indicates whether the table layout follows right‑to‑left reading order |
first_row | bool | Read | Indicates whether the first row is formatted as a header row |
first_col | bool | Read | |
last_row | bool | Read | Indicates whether the last row is formatted as a total row |
last_col | bool | Read | |
horizontal_banding | bool | Read | Toggles alternating background colors for rows |
vertical_banding | bool | Read | Toggles alternating background colors for columns |
as_i_graphical_object | IGraphicalObject | Read | Casts the table to the IGraphicalObject interface |
as_i_bulk_text_formattable | IBulkTextFormattable | Read | Casts the table to the IBulkTextFormattable interface for bulk text operations |
Methods
| Signature | Description |
|---|---|
set_text_format() | Sets the formatting for all text within the table |
merge_cells(cell1, cell2, allow_splitting) → ICell | Merges the specified cell1 and cell2, optionally allowing splitting, and returns the resulting ICell |