ListItemBlock

Overview

ListItemBlock is a class in Aspose.Words FOSS for Python. Inherits from: Block.

This class provides 6 methods for working with ListItemBlock 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

NameTypeAccessDescription
marker``ReadGets the marker.
start_at``ReadGets the start at.
is_level_start``ReadGets the is level start.
is_first_childboolReadGets the is first child.
is_last_childboolReadGets the is last child.
next_siblingOptional["Block"]ReadGets the next sibling.
previous_siblingOptional["Block"]ReadGets the previous sibling.
block_levelMarkdownBlockLevelReadGets the block level.
type``ReadGets the type.
parentOptional["Block"]ReadGets the parent.
childrenlist["Block"]ReadGets the children.

Methods

SignatureDescription
__init__(block_type: BlockType, marker: ListMarker, start_at: int)Calls init(block_type, marker, start_at) on this ListItemBlock instance.
get_level()int0-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 ListItemBlock instance.
add_child(child: "Block")"Block"Calls add_child(child) on this ListItemBlock 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. |

See Also