---
Product: Aspose.Cells
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/python/worksheetpropertiesxmlwriter
---

# WorksheetPropertiesXMLWriter

## Overview

`WorksheetPropertiesXMLWriter` is a class in Aspose.Cells FOSS for Python.

Handles writing worksheet properties to XML format for .xlsx files.

This class declares 8 methods for WorksheetPropertiesXMLWriter objects in Python programs.
Available methods include: `__init__`, `format_header_footer_xml`, `format_page_margins_xml`, `format_page_setup_xml`, `format_print_options_xml`, `format_sheet_format_pr_xml`, `format_sheet_protection_xml`, `format_sheet_views_xml`.
Public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package.

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(escape_xml_func)` | Initializes a new instance of the WorksheetPropertiesXMLWriter class. |
| `format_sheet_views_xml(properties, is_selected)` | Formats sheet views element as XML. |
| `format_sheet_format_pr_xml(format_props)` | Formats sheet format properties element as XML. |
| `format_sheet_protection_xml(protection)` | Formats sheet protection element as XML. |
| `format_print_options_xml(print_options)` | Formats print options element as XML. |
| `format_page_margins_xml(margins)` | Formats page margins element as XML. |
| `format_page_setup_xml(page_setup)` | Formats page setup element as XML. |
| `format_header_footer_xml(header_footer)` | Formats header/footer element as XML. |

## See Also

- [Aspose.Cells for Python — Enterprise API Reference](https://reference.aspose.com/cells/python-java/)