Cell
Overview
Cell is a class in Aspose.Words FOSS for Python.
Inherits from: BaseModel, NodeCastMixin.
Cell objects expose a cell_format property that provides width, padding, vertical alignment, and shading options via the CellFormat class.
This class provides 8 methods for working with Cell objects in Python programs.
Available methods include: as_body, as_cell, as_paragraph, as_row, as_run, as_section, as_shape, as_table.
All public members are accessible to any Python application after installing the Aspose.Words FOSS for Python package.
Properties: cell_format, paragraphs, tables, type.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
type | str | Read | Gets the type. |
cell_format | CellFormat | Read | Gets the cell format. |
paragraphs | list[Paragraph] | Read | Gets the paragraphs. |
tables | list[Table] | Read | Gets the tables. |
Methods
| Signature | Description |
|---|---|
as_body() | Calls as_body on this Cell instance. |
as_cell() | Calls as_cell on this Cell instance. |
as_paragraph() | Calls as_paragraph on this Cell instance. |
as_row() | Calls as_row on this Cell instance. |
as_run() | Calls as_run on this Cell instance. |
as_section() | Calls as_section on this Cell instance. |
as_shape() | Calls as_shape on this Cell instance. |
as_table() | Calls as_table on this Cell instance. |