TableFormat module

class TableFormat.TableFormat

Bases: WordAttrCollection

Represents the formatting of a row in a table.

property AllowAutoFit: bool

Gets or sets a value indicating whether to wrap text around the row.

property Bidi: bool

Gets or sets a value indicating whether the table is right to left.

property Borders: Borders

Gets the borders of the row.

property CellSpacing: float

Gets or sets the spacing between cells in the row. The value must be between 0 pt and 264.5 pt. The value will not be applied if it is out of range. The property will be cleared if the value is less than 0.

ClearBackground()

Clears the background of the cell.

ClearFormatting()

Clears the background of the cell.

property HorizontalAlignment: RowAlignment

Gets or sets the horizontal alignment of the row.

property LayoutType: LayoutType

Gets or sets the layout type of the row.

property LeftIndent: float

Gets or sets the left indent of the row.

property Paddings: Paddings

Gets the paddings of the row.

property Positioning: TablePositioning

Gets the positioning of the row.

property WrapTextAround: bool

Gets or sets a value indicating whether to wrap text around the row.