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