ParagraphInfo

Overview

ParagraphInfo is a class in Aspose.Words for Python.

Information about a paragraph’s style and context.

Properties

NameTypeAccessDescription
style_namestrReadReturns the name of the paragraph’s style
heading_levelintReadReturns the heading level of the paragraph (e.g., 1 for Heading 1)
is_quoteboolReadIndicates whether the paragraph is a block quote
quote_levelintReadReturns the nesting depth of the block quote
is_list_itemboolReadIs true when the paragraph belongs to a list
list_levelintReadReturns the nesting depth of the list item
list_typestrReadReturns the type of list, such as “ordered” or “unordered”
list_markerstrReadReturns the marker string used for the list item (e.g., “-”, “1.”)
is_code_blockboolReadIs true when the paragraph represents a code block
code_languagestrReadReturns the programming language identifier for the code block
alignmentstrReadReturns the text alignment of the paragraph (e.g., “left”, “center”)