TableBlock
Übersicht
TableBlock ist eine Klasse in Aspose.Words FOSS für Python. Erbt von: Block.
Diese Klasse stellt 4 Methoden zur Arbeit mit TableBlock-Objekten in Python-Programmen bereit. Verfügbare Methoden umfassen: __init__, add_child, get_parent. Alle öffentlichen Mitglieder sind für jede Python-Anwendung zugänglich, nachdem das Aspose.Words FOSS für Python-Paket installiert wurde. Eigenschaften: block_level, children, column_alignments, columns_count, is_first_child, is_last_child und 4 weitere.
Eigenschaften
| Name | Typ | Zugriff | Beschreibung |
|---|---|---|---|
columns_count | int | Lesen | Ermittelt die Spaltenanzahl. |
column_alignments | `` | Lesen | Ruft die Spaltenausrichtungen ab. |
is_first_child | bool | Lesen | Ermittelt, ob es das erste Kind ist. |
is_last_child | bool | Lesen | Gibt das is last child zurück. |
next_sibling | Optional["Block"] | Lesen | Ruft das nächste Geschwisterelement ab. |
previous_sibling | Optional["Block"] | Lesen | Gibt das vorherige Geschwisterelement zurück. |
block_level | MarkdownBlockLevel | Lesen | Gibt die Blockebene zurück. |
type | `` | Lesen | Ruft den Typ ab. |
parent | Optional["Block"] | Lesen | Ruft das übergeordnete Element ab. |
children | list["Block"] | Lesen | Ruft die Kinder ab. |
Methoden
| Signatur | Beschreibung |
|---|---|
__init__(column_alignments: list[Optional[str]]) | Calls init(column_alignments) bei dieser TableBlock-Instanz. |
__init__(block_type: BlockType) | Calls init(block_type) bei dieser TableBlock-Instanz. |
add_child(child: "Block") → "Block" | Ruft add_child(child) auf dieser TableBlock-Instanz auf. |
get_parent() → Optional["Block"] | Durchlaufe die Vorfahrenkette nach oben und gib den ersten Block zurück, dessen |
``type`` is one of *types*, or ``None`` if none matches. |