Style

Overview

Style is a class in Aspose.Words for Python. Inherits from: BaseModel.

Style objects encapsulate style metadata including name, type, heading flag, base style name, linked paragraph style, and associated paragraph and font formatting.

Properties

NameTypeAccessDescription
namestrReadHolds the style’s identifier string
typeintReadReturns the integer representing the style’s category
is_headingboolReadIndicates whether the style is a heading style
base_style_namestrReadReturns the name of the style this style inherits from
next_paragraph_style_namestrReadGives the name of the style applied to the following paragraph
paragraph_formatParagraphFormat | NoneReadReturns the ParagraphFormat object for this style, or None if unavailable
fontFont | NoneRead