AtxHeadingBlock
Overview
AtxHeadingBlock is a class in Aspose.Words FOSS for Python.
Inherits from: HeadingBlock.
AtxHeadingBlock represents an ATX style heading and provides a level property and add_child(child) / get_parent() methods for tree manipulation.
This class provides 5 methods for working with AtxHeadingBlock objects in Python programs.
Available methods include: __init__, add_child, 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, level, next_sibling, and 3 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
level | `` | Read | Gets the level. |
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__(level: int) | Calls init(level) on this AtxHeadingBlock instance. |
__init__(block_type: BlockType, level: int) | Calls init(block_type, level) on this AtxHeadingBlock instance. |
__init__(block_type: BlockType) | Calls init(block_type) on this AtxHeadingBlock instance. |
add_child(child: "Block") → "Block" | Calls add_child(child) on this AtxHeadingBlock 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. |