ShapeCollection
General
ShapeCollection is a class in Aspose.Slides for Python.
Inherits from: BaseCollection, IShapeCollection.
ShapeCollection és una classe en Aspose.Slides per a Python. És heretat de: ゚BaseCollection⌒, ヽIShapeCollection▽ .
Representa una col·lecció de formes.
Propietats
| Name | Type | Access | Description |
|---|---|---|---|
parent_group | IGroupShape | Read | Gets the IGroupShape that contains this collection, if any |
as_i_collection | list | Read | |
as_i_enumerable | Any | Read |
Mètodes
| Signature | Description |
|---|---|
__init__() | Initialize an empty shape collection. |
to_array() → list[IShape] | Convert the collection to an array. |
reorder() | Reorder shapes in the collection. |
add_auto_shape() → IAutoShape | Adds a new IAutoShape to the collection and returns it |
insert_auto_shape() → IAutoShape | Inserts a new IAutoShape into the collection and returns it |
add_connector() → IConnector | Adds a new IConnector shape to the collection and returns it |
insert_connector() → IConnector | Inserts a new IConnector shape into the collection and returns it |
index_of(shape: IShape) → int | Return the zero-based index of the specified shape. |
add_picture_frame(shape_type, x, y, width, height, image) → IPictureFrame | Adds a picture frame with given type, size and image to the collection |
insert_picture_frame(index, shape_type, x, y, width, height, image) → IPictureFrame | Inserts a picture frame at index with type, size and image |
add_table(x, y, column_widths, row_heights) → ITable | Adds a table at (x, y) with specified column widths and row heights |
insert_table(index, x, y, column_widths, row_heights) → ITable | Inserts a table at index and position with given column widths and row heights |
remove_at(index: int) | Remove the shape at the specified index. |
remove(shape: IShape) | Remove the specified shape from the collection. |
clear() | Remove all shapes from the collection. |