ListBlock

ListBlock

Overzicht

ListBlock is een klasse in Aspose.Words FOSS voor Python. Erft van: Block.

Container die broederlijke ListItemBlocks groepeert (Markdig’s ListBlock).

Deze klasse biedt 4 methoden voor het werken met ListBlock objecten in Python programma’s. Beschikbare methoden zijn: __init__, add_child, get_parent. Alle openbare 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_last_child, marker, next_sibling, en nog 4.

Eigenschappen

NaamTypeToegangBeschrijving
ordered``LezenHaalt de geordende op.
marker``LezenHaalt de marker op.
is_first_childboolLezenHaalt de isFirstChild op.
is_last_childboolLezenHaalt de is last child op.
next_siblingOptional["Block"]LezenHaalt de volgende sibling op.
previous_siblingOptional["Block"]LezenHaalt de vorige sibling op.
block_levelMarkdownBlockLevelLezenHaalt het blokniveau op.
type``LezenHaalt het type op.
parentOptional["Block"]LezenHaalt de ouder op.
childrenlist["Block"]LezenHaalt de kinderen op.

Methoden

HandtekeningBeschrijving
__init__(ordered: bool, marker: ListMarker)Calls init(geordend, marker) op deze ListBlock instantie.
__init__(block_type: BlockType)Calls init(block_type) op deze ListBlock instantie.
add_child(child: "Block") → "Block"Roept add_child(child) aan op deze ListBlock instantie.
get_parent() → Optional["Block"]Loop omhoog in de voorouderketen en retourneer het eerste blok waarvan
    ``type`` is one of *types*, or ``None`` if none matches. |

Zie ook

 Nederlands