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

# ShapeCollection

## Overview

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

Collection of Shape objects on a worksheet.

This class declares 8 methods for ShapeCollection objects in Python programs.
Available methods include: `AddTextBox`, `__getitem__`, `__init__`, `__iter__`, `__len__`, `add`, `add_text_box`, `copy`.
Public members are accessible to any Python application after installing the Aspose.Cells FOSS for Python package.
Properties: `count`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `count` | - | Read | Gets the count. |

## Methods

| Signature | Description |
|-----------|-------------|
| `__init__(worksheet)` | Calls __init__(worksheet) on this ShapeCollection instance. |
| `add(drawing_type, upper_left_row, upper_left_column, lower_right_row, lower_right_column)` | Adds a shape of the specified type to the worksheet. |
| `add_text_box(upper_left_row, upper_left_column, lower_right_row, lower_right_column)` | Adds a TextBox shape (transparent fill, no border) to the worksheet. |
| `AddTextBox(upper_left_row, upper_left_column, lower_right_row, lower_right_column)` | PascalCase alias of add_text_box(). |
| `__len__()` | Calls __len__ on this ShapeCollection instance. |
| `__iter__()` | Calls __iter__ on this ShapeCollection instance. |
| `__getitem__(index)` | Calls __getitem__(index) on this ShapeCollection instance. |
| `copy(new_worksheet)` | Returns a deep copy of this collection bound to new_worksheet. |

## See Also

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