ParagraphInfo
Overview
ParagraphInfo is a class in Aspose.Words for Python.
Information about a paragraph’s style and context.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
style_name | str | Read | Returns the name of the paragraph’s style |
heading_level | int | Read | Returns the heading level of the paragraph (e.g., 1 for Heading 1) |
is_quote | bool | Read | Indicates whether the paragraph is a block quote |
quote_level | int | Read | Returns the nesting depth of the block quote |
is_list_item | bool | Read | Is true when the paragraph belongs to a list |
list_level | int | Read | Returns the nesting depth of the list item |
list_type | str | Read | Returns the type of list, such as “ordered” or “unordered” |
list_marker | str | Read | Returns the marker string used for the list item (e.g., “-”, “1.”) |
is_code_block | bool | Read | Is true when the paragraph represents a code block |
code_language | str | Read | Returns the programming language identifier for the code block |
alignment | str | Read | Returns the text alignment of the paragraph (e.g., “left”, “center”) |