BulletListItemBlock
Overview
BulletListItemBlock is a class in Aspose.Words FOSS for Python.
Inherits from: ListItemBlock.
BulletListItemBlock exposes the list marker via the marker property, the starting number via start_at, and its nesting depth via the get_level() method.
This class provides 7 methods for working with BulletListItemBlock objects in Python programs.
Available methods include: __init__, add_child, get_level, get_list_container, get_parent.
All public members are accessible to any Python application after installing the Aspose.Words FOSS for Python package.
Properties: block_level, children, is_first_child, is_last_child, is_level_start, marker, and 5 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
marker | `` | Read | Gets the marker. |
start_at | `` | Read | Gets the start at. |
is_level_start | `` | Read | Gets the is level start. |
is_first_child | bool | Read | Gets the is first child. |
is_last_child | bool | Read | Gets the is last child. |
next_sibling | Optional["Block"] | Read | Gets the next sibling. |
previous_sibling | Optional["Block"] | Read | Gets the previous sibling. |
block_level | MarkdownBlockLevel | Read | Gets the block level. |
type | `` | Read | Gets the type. |
parent | Optional["Block"] | Read | Gets the parent. |
children | list["Block"] | Read | Gets the children. |
Methods
| Signature | Description |
|---|---|
__init__(marker: ListMarker) | Calls init(marker) on this BulletListItemBlock instance. |
__init__(block_type: BlockType, marker: ListMarker, start_at: int) | Calls init(block_type, marker, start_at) on this BulletListItemBlock instance. |
get_level() → int | 0-based nesting depth: how many ancestor list items enclose this one. |
get_list_container() → Optional["ListBlock"] | Returns the list container. |
__init__(block_type: BlockType) | Calls init(block_type) on this BulletListItemBlock instance. |
add_child(child: "Block") → "Block" | Calls add_child(child) on this BulletListItemBlock instance. |
get_parent() → Optional["Block"] | Walk up the ancestor chain and return the first block whose |
``type`` is one of *types*, or ``None`` if none matches. |