CellBlock
Overzicht
CellBlock is een klasse in Aspose.Words FOSS voor Python. Erft van: Block.
Deze klasse biedt 4 methoden voor het werken met CellBlock 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: alignment, block_level, children, is_first_child, is_last_child, next_sibling, en nog 3.
Eigenschappen
| Naam | Type | Toegang | Beschrijving |
|---|---|---|---|
alignment | `` | Lezen | Haalt de uitlijning op. |
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 | Geeft de vorige sibling. |
block_level | MarkdownBlockLevel | Lezen | Haalt het blokniveau op. |
type | `` | Lezen | Haalt het type op. |
parent | Optional["Block"] | Lezen | Haalt de bovenliggende op. |
children | list["Block"] | Lezen | Haalt de kinderen op. |
Methoden
| Handtekening | Beschrijving |
|---|---|
__init__(alignment: Optional[str]) | Calls init(alignment) op deze CellBlock instantie. |
__init__(block_type: BlockType) | Calls init(block_type) op deze CellBlock instantie. |
add_child(child: "Block") → "Block" | Roept add_child(child) aan op deze CellBlock instantie. |
get_parent() → Optional["Block"] | Loop omhoog langs de voorouderketen en geef het eerste blok terug waarvan |
``type`` is one of *types*, or ``None`` if none matches. |