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. |