TableBlock

Overview

TableBlock is a class in Aspose.Words FOSS for Python. Inherits from: Block.

This class provides 4 methods for working with TableBlock objects in Python programs. Available methods include: __init__, add_child, get_parent. All public members are accessible to any Python application after installing the Aspose.Words FOSS for Python package. Properties: block_level, children, column_alignments, columns_count, is_first_child, is_last_child, and 4 more.

Properties

NameTypeAccessDescription
columns_countintReadGets the columns count.
column_alignments``ReadGets the column alignments.
is_first_childboolReadGets the is first child.
is_last_childboolReadGets the is last child.
next_siblingOptional["Block"]ReadGets the next sibling.
previous_siblingOptional["Block"]ReadGets the previous sibling.
block_levelMarkdownBlockLevelReadGets the block level.
type``ReadGets the type.
parentOptional["Block"]ReadGets the parent.
childrenlist["Block"]ReadGets the children.

Methods

SignatureDescription
__init__(column_alignments: list[Optional[str]])Calls init(column_alignments) on this TableBlock instance.
__init__(block_type: BlockType)Calls init(block_type) on this TableBlock instance.
add_child(child: "Block")"Block"Calls add_child(child) on this TableBlock instance.
get_parent()Optional["Block"]Walk up the ancestor chain and return the first block whose
    ``type`` is one of *types*, or ``None`` if none matches. |

See Also