CellFormat

Overview

CellFormat is a class in Aspose.Words for Python. Inherits from: BaseModel.

CellFormat.width gets or sets the cell’s absolute width in points.

Properties

NameTypeAccessDescription
widthfloatReadGets or sets the cell’s absolute width in points
preferred_widthstrReadGets or sets the cell’s preferred width as a string (e.g., ‘2in’)
vertical_alignmentintReadGets or sets the vertical alignment of cell content as an integer enum
vertical_mergeintReadGets or sets the vertical merge behavior of the cell as an integer enum
horizontal_mergeintReadIndicates how the cell merges horizontally with adjacent cells
top_paddingfloatReadGets or sets the top padding of the cell in points
bottom_paddingfloatReadSets the bottom padding distance inside the cell
left_paddingfloatReadSets the left padding distance inside the cell
right_paddingfloatReadSets the right padding distance inside the cell
shadingShadingReadGets or sets a Shading object that defines the cell’s background
borderslist[Border]ReadGets the list of Border objects defining the cell’s borders