StyleParser

Overview

StyleParser is a class in Aspose.Words FOSS for Python.

Parser for DOCX style names and properties.

This class provides 4 methods for working with StyleParser objects in Go programs. Available methods include: extract_all_styles, get_style_chain, is_setext_heading, parse. All exported members are accessible to any Go application after adding the package via go get github.com/aspose-pdf-foss/aspose-pdf-foss-for-go.

Methods

SignatureDescription
parse(style_name: str, style_identifier: int)ParsedStyleParse a style name into structured information.
get_style_chain(style_names: list[str])list[ParsedStyle]Parse a chain of style names (for inherited styles).
is_setext_heading(style_name: str)boolCheck if style is a Setext-style heading.
extract_all_styles(style_chain: str)list[str]Extract individual style names from a comma-separated chain.

See Also