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