LinkTextBlock
Overzicht
LinkTextBlock is een klasse in Aspose.Words FOSS voor Python. Erft van: Block.
Deze klasse biedt 4 methoden voor het werken met LinkTextBlock objecten in Python programma’s. Beschikbare methoden omvatten: __init__, add_child, get_parent. Alle publieke leden zijn toegankelijk voor elke Python applicatie na het installeren van het Aspose.Words FOSS voor Python pakket. Eigenschappen: block_level, children, definition_label, has_destination, is_first_child, is_image, en nog 8.
Eigenschappen
| Naam | Type | Toegang | Beschrijving |
|---|---|---|---|
has_destination | bool | Lezen | Haalt de has-bestemming op. |
uri | `` | Lezen | Haalt de uri op. |
title | `` | Lezen | Haalt de titel op. |
is_image | `` | Lezen | Haalt de is-afbeelding op. |
definition_label | `` | Lezen | Haalt het definitielabel op. |
raw_text | `` | Lezen | Haalt de ruwe tekst op. |
is_first_child | bool | Lezen | Haalt de is eerste kind op. |
is_last_child | bool | Lezen | Haalt de IsLastChild op. |
next_sibling | Optional["Block"] | Lezen | Haalt de volgende sibling op. |
previous_sibling | Optional["Block"] | Lezen | Haalt de vorige sibling op. |
block_level | MarkdownBlockLevel | Lezen | Haalt het blokniveau op. |
type | `` | Lezen | Haalt het type op. |
parent | Optional["Block"] | Lezen | Haalt de ouder op. |
children | list["Block"] | Lezen | Haalt de kinderen op. |
Methoden
| Handtekening | Beschrijving |
|---|---|
__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) op deze LinkTextBlock instantie. |
__init__(block_type: BlockType) | Calls init(block_type) op deze LinkTextBlock instantie. |
add_child(child: "Block") → "Block" | Roept add_child(child) aan op deze LinkTextBlock instantie. |
get_parent() → Optional["Block"] | Loop de voorouderketen omhoog en retourneer het eerste blok waarvan |
``type`` is one of *types*, or ``None`` if none matches. |