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

# SharedStringTable

## Overview

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

Manages the Shared String Table for XLSX files according to ECMA-376 specification.

This class declares 6 methods for SharedStringTable objects in Python programs.
Available methods include: `__init__`, `__len__`, `add_string`, `from_xml`, `get_string`, `to_xml`.
Public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package.
Properties: `count`, `string_to_index`, `strings`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `strings` | - | Read | Gets the strings. |
| `string_to_index` | - | Read | Gets the string to index. |
| `count` | - | Read | Gets the count. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__()` | Initialize an empty shared string table. |
| `add_string(text)` | Add a string to the shared string table and return its index. |
| `get_string(index)` | Get a string from the shared string table by its index. |
| `to_xml()` | Convert the shared string table to XML format for XLSX files. |
| `from_xml(xml_content)` | Create a SharedStringTable from XML content. |
| `__len__()` | Return the number of strings in the table. |

## See Also

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