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

NameTypeAccessDescription
first_rowRow | NoneReadGets the first row.
last_rowRow | NoneReadGets the last row.
typeLiteral["Table"]ReadGets the type.
alignmentintReadGets the alignment.
preferred_widthPreferredWidthReadGets the preferred width.
left_indentfloatReadGets the left indent.
left_paddingfloatReadGets the left padding.
right_paddingfloatReadGets the right padding.
top_paddingfloatReadGets the top padding.
bottom_paddingfloatReadGets the bottom padding.
style_namestrReadGets the style name.
text_wrappingintReadGets the text wrapping.
titlestrReadGets the title.
descriptionstrReadGets the description.
rowslist[Row]ReadGets the rows.

Methods

SignatureDescription
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.

See Also

 English