CellFormat module

class CellFormat.CellFormat

Bases: WordAttrCollection

Represents the format of a cell in a table.

property BackColor: Color

Gets or sets the background color of the cell.

property Borders: Borders

Gets the borders of the cell.

ClearBackground()

Clears the background of the cell.

property FitText: bool

Gets or sets the fit text option of the cell.

property HorizontalMerge: CellMerge

Gets or sets the horizontal merging of the cell.

property Paddings: Paddings

Gets the paddings of the cell.

property SamePaddingsAsTable: bool

Gets or sets whether to use the same paddings as the table.

property Shading: Shading

Gets Shading of the cell.

property TextDirection: TextDirection

Gets or sets the text direction of the cell.

property TextWrap: bool

Gets or sets a value indicating whether text should wrap in the cell.

property VerticalAlignment: VerticalAlignment

Gets or sets the vertical alignment of the cell.

property VerticalMerge: CellMerge

Gets or sets the vertical merging of the cell.