LineBreakBlock
Overzicht
LineBreakBlock is een klasse in Aspose.Words FOSS voor Python. Erft van: Block.
Deze klasse biedt 4 methoden voor het werken met LineBreakBlock 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, is_first_child, is_hard, is_last_child, next_sibling, en 3 extra.
Eigenschappen
| Naam | Type | Toegang | Beschrijving |
|---|---|---|---|
is_hard | `` | Lezen | Haalt de is hard. |
is_first_child | bool | Lezen | Haalt de is first child op. |
is_last_child | bool | Lezen | Haalt de is last child 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__(is_hard: bool) | Calls init(is_hard) op deze LineBreakBlock instantie. |
__init__(block_type: BlockType) | Calls init(block_type) op deze LineBreakBlock instantie. |
add_child(child: "Block") → "Block" | Roept add_child(child) aan op deze LineBreakBlock instantie. |
get_parent() → Optional["Block"] | Loop de voorouderketen op en retourneer het eerste blok waarvan |
``type`` is one of *types*, or ``None`` if none matches. |