TableCell module

class TableCell.TableCell

Bases: Body, IDocumentObject

Represents a cell in a table.

property CellFormat: CellFormat

Gets the cell format. :returns: The cell format.

property CellWidthType: CellWidthType

Gets the width type of the cell. :returns: The width type of the cell.

Clone() DocumentObject

Creates a new TableCell object that is a copy of the current instance. :returns: A new TableCell object that is a copy of this instance.

property DocumentObjectType: DocumentObjectType

Gets the type of the document object. :returns: The type of the document object.

GetCellIndex() int

Gets the index of the cell in the row. :returns: The index of the cell in the row.

GetCellWidth() float

Gets the width of the cell. :returns: The width of the cell.

GetCellWidthType() CellWidthType

Gets the width type of the cell. :returns: The width type of the cell.

property GridSpan: int

Gets the number of columns that the cell spans. :returns: The number of columns that the cell spans.

property OwnerRow: TableRow

Gets the owner row of the cell. :returns: The owner row of the cell.

property Scaling: float

Gets or sets the cell scaling. :returns: The cell scaling.

SetCellWidth(width: float, widthType: CellWidthType)

Sets the width and type of the cell. :param width: The width of the cell. :param widthType: The width type of the cell.

SplitCell(columnNum: int, rowNum: int)

Splits the cell into two or more cells. :param columnNum: The number of columns to split. Must be greater than or equal to 1. :param rowNum: The number of rows to split. Must be greater than or equal to 1.

property Width: float

Gets the width of the cell. :returns: The width of the cell.