Table

Overview

Table is a class in Aspose.Slides for Python. Inherits from: GraphicalObject, ITable.

Represents a table on a slide.

Properties

NameTypeAccessDescription
graphical_object_lockIGraphicalObjectLockReadProvides access to lock settings that control editing of the table
rowsIRowCollectionReadReturns a collection representing all rows in the table
columnsIColumnCollectionRead
table_formatITableFormatReadGives access to formatting options such as borders and fill for the table
style_presetTableStylePresetReadGets or sets a predefined style applied to the table
right_to_leftboolReadIndicates whether the table layout follows right‑to‑left reading order
first_rowboolReadIndicates whether the first row is formatted as a header row
first_colboolRead
last_rowboolReadIndicates whether the last row is formatted as a total row
last_colboolRead
horizontal_bandingboolReadToggles alternating background colors for rows
vertical_bandingboolReadToggles alternating background colors for columns
as_i_graphical_objectIGraphicalObjectReadCasts the table to the IGraphicalObject interface
as_i_bulk_text_formattableIBulkTextFormattableReadCasts the table to the IBulkTextFormattable interface for bulk text operations

Methods

SignatureDescription
set_text_format()Sets the formatting for all text within the table
merge_cells(cell1, cell2, allow_splitting)ICellMerges the specified cell1 and cell2, optionally allowing splitting, and returns the resulting ICell