Table
Overview
Table is a class in Aspose.Words FOSS for Python.
Inherits from: BaseModel, NodeCastMixin.
Table conversion to Markdown is handled by TableConverter, which respects table style properties and content alignment.
This class provides 8 methods for working with Table 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: alignment, bottom_padding, description, first_row, last_row, left_indent, and 9 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
first_row | Row | None | Read | Gets the first row. |
last_row | Row | None | Read | Gets the last row. |
type | Literal["Table"] | Read | Gets the type. |
alignment | int | Read | Gets the alignment. |
preferred_width | PreferredWidth | Read | Gets the preferred width. |
left_indent | float | Read | Gets the left indent. |
left_padding | float | Read | Gets the left padding. |
right_padding | float | Read | Gets the right padding. |
top_padding | float | Read | Gets the top padding. |
bottom_padding | float | Read | Gets the bottom padding. |
style_name | str | Read | Gets the style name. |
text_wrapping | int | Read | Gets the text wrapping. |
title | str | Read | Gets the title. |
description | str | Read | Gets the description. |
rows | list[Row] | Read | Gets the rows. |
Methods
| Signature | Description |
|---|---|
as_body() | Calls as_body on this Table instance. |
as_cell() | Calls as_cell on this Table instance. |
as_paragraph() | Calls as_paragraph on this Table instance. |
as_row() | Calls as_row on this Table instance. |
as_run() | Calls as_run on this Table instance. |
as_section() | Calls as_section on this Table instance. |
as_shape() | Calls as_shape on this Table instance. |
as_table() | Calls as_table on this Table instance. |