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

NameTypeAccessDescription
parent_groupIGroupShapeReadGets the IGroupShape that contains this collection, if any
as_i_collectionlistRead
as_i_enumerableAnyRead

Mètodes

SignatureDescription
__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() → IAutoShapeAdds a new IAutoShape to the collection and returns it
insert_auto_shape() → IAutoShapeInserts a new IAutoShape into the collection and returns it
add_connector() → IConnectorAdds a new IConnector shape to the collection and returns it
insert_connector() → IConnectorInserts a new IConnector shape into the collection and returns it
index_of(shape: IShape) → intReturn the zero-based index of the specified shape.
add_picture_frame(shape_type, x, y, width, height, image) → IPictureFrameAdds a picture frame with given type, size and image to the collection
insert_picture_frame(index, shape_type, x, y, width, height, image) → IPictureFrameInserts a picture frame at index with type, size and image
add_table(x, y, column_widths, row_heights) → ITableAdds a table at (x, y) with specified column widths and row heights
insert_table(index, x, y, column_widths, row_heights) → ITableInserts 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.
 Català