ITable module

class ITable.ITable

Bases: ICompositeObject, IDocumentObject

Interface for a table object in a document.

AddRow

Adds a new row to the table.

abstract ApplyHorizontalMerge(rowIndex: int, startCellIndex: int, endCellIndex: int)

Applies horizontal merge to the cells in the specified row, starting from the specified start cell index to the specified end cell index.

abstract ApplyVerticalMerge(columnIndex: int, startRowIndex: int, endRowIndex: int)

Applies vertical merge to the cells in the specified column, starting from the specified start row index to the specified end row index.

abstract property FirstRow: TableRow

Returns the first row in the table.

abstract property IndentFromLeft: float

Returns the indent from the left of the table.

abstract property LastCell: TableCell

Returns the last cell in the table.

abstract property LastRow: TableRow

Returns the last row in the table.

abstract RemoveAbsPosition()

Removes the absolute position of the table.

ResetCells

Resets the cells in the table to the specified number of rows and columns.

abstract property Rows: RowCollection

Returns the collection of rows in the table.

abstract property TableFormat: RowFormat

Returns the format of the table.

abstract property Width: float

Returns the width of the table.

abstract get_Item(row: int, column: int) TableCell

Returns the cell at the specified row and column.