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
| Name | Type | Access | Description |
|---|---|---|---|
width | float | Read | Gets or sets the cell’s absolute width in points |
preferred_width | str | Read | Gets or sets the cell’s preferred width as a string (e.g., ‘2in’) |
vertical_alignment | int | Read | Gets or sets the vertical alignment of cell content as an integer enum |
vertical_merge | int | Read | Gets or sets the vertical merge behavior of the cell as an integer enum |
horizontal_merge | int | Read | Indicates how the cell merges horizontally with adjacent cells |
top_padding | float | Read | Gets or sets the top padding of the cell in points |
bottom_padding | float | Read | Sets the bottom padding distance inside the cell |
left_padding | float | Read | Sets the left padding distance inside the cell |
right_padding | float | Read | Sets the right padding distance inside the cell |
shading | Shading | Read | Gets or sets a Shading object that defines the cell’s background |
borders | list[Border] | Read | Gets the list of Border objects defining the cell’s borders |