---
Product: Aspose.Words
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/words/python/stylebuilder
---

# StyleBuilder

## Overview

`StyleBuilder` is a class in Aspose.Words FOSS for Python.

Translate ``<w:styles>`` into a list of :class:`ldm.Style`.

This class declares 2 methods for StyleBuilder objects in Python programs.
Available methods include: `__init__`, `build_all`.
Public members are accessible to any Python application after installing the Aspose.Words FOSS for Python package.

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(ctx: ReaderContext, fonts: FontBuilder, font_resolver: FontResolver, pfs: ParagraphFormatBuilder, pf_resolver: ParagraphFormatResolver)` | Calls __init__(ctx, fonts, font_resolver, pfs, pf_resolver) on this StyleBuilder instance. |
| `build_all()` → `list[ldm.Style]` | Return one :class:`ldm.Style` per ``<w:style>`` in ``styles.xml``. |

## See Also

- [Aspose.Words for Python — Enterprise API Reference](https://reference.aspose.com/words/python-net/)